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(
196196      target : / c o r e ( \/ | \\ ) u t i l \. j s / g, 
197197      deletes : [ 
198198        ...( disableNextPrebundledReact  ? [ "requireHooks" ]  : [ ] ) , 
199-         ...( disableRouting  ? [ "trustHostHeader" ]  : [ ] ) , 
200-         ...( ! isBefore13413  ? [ "requestHandlerHost" ]  : [ ] ) , 
199+         ...( isBefore13413  ? [ "trustHostHeader" ]  : [ "requestHandlerHost" ] ) , 
201200        ...( isAfter141 
202201          ? [ "experimentalIncrementalCacheHandler" ] 
203202          : [ "stableIncrementalCache" ] ) , 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments