File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
packages/open-next/src/build Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ ' @opennextjs/aws ' : patch
3
+ ---
4
+
5
+ Mark the host header as trusted when the OpenNext project has external middleware to align with normal behavior for the Next.js server.
Original file line number Diff line number Diff line change @@ -196,8 +196,7 @@ async function generateBundle(
196
196
target : / c o r e ( \/ | \\ ) u t i l \. j s / g,
197
197
deletes : [
198
198
...( disableNextPrebundledReact ? [ "requireHooks" ] : [ ] ) ,
199
- ...( disableRouting ? [ "trustHostHeader" ] : [ ] ) ,
200
- ...( ! isBefore13413 ? [ "requestHandlerHost" ] : [ ] ) ,
199
+ ...( isBefore13413 ? [ "trustHostHeader" ] : [ "requestHandlerHost" ] ) ,
201
200
...( isAfter141
202
201
? [ "experimentalIncrementalCacheHandler" ]
203
202
: [ "stableIncrementalCache" ] ) ,
You can’t perform that action at this time.
0 commit comments