Unverified Commit 098cc991 authored by JJ Kasper's avatar JJ Kasper Committed by GitHub

Ensure middleware layer is bundled (#76466)

Optimization for node middleware bundling ensuring that we bundle all
dependencies by default instead of externalizing like we do for pages
routes. The `serverExternals` config is still applied for this
configuration so if any packages need externalizing they still can be.
parent d6ec9039
......@@ -182,6 +182,7 @@ const WEBPACK_LAYERS = {
WEBPACK_LAYERS_NAMES.appPagesBrowser,
WEBPACK_LAYERS_NAMES.shared,
WEBPACK_LAYERS_NAMES.instrument,
WEBPACK_LAYERS_NAMES.middleware,
],
appPages: [
// app router pages and layouts
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment