File tree 2 files changed +13
-1
lines changed
tests/fixtures/simple-next-app-export
2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -80,6 +80,18 @@ export default async (request: Request) => {
80
80
return await tracer . withActiveSpan ( 'generate response' , async ( span ) => {
81
81
const { req, res } = toReqRes ( request )
82
82
83
+ // Work around a bug in http-proxy in next@<14.0.2
84
+ Object . defineProperty ( req , 'connection' , {
85
+ get ( ) {
86
+ return { }
87
+ } ,
88
+ } )
89
+ Object . defineProperty ( req , 'socket' , {
90
+ get ( ) {
91
+ return { }
92
+ } ,
93
+ } )
94
+
83
95
disableFaultyTransferEncodingHandling ( res as unknown as ComputeJsOutgoingMessage )
84
96
85
97
const requestContext = getRequestContext ( ) ?? createRequestContext ( )
Original file line number Diff line number Diff line change 8
8
"build" : " next build"
9
9
},
10
10
"dependencies" : {
11
- "next" : " ^14.1.1-canary.66 " ,
11
+ "next" : " latest " ,
12
12
"react" : " 18.2.0" ,
13
13
"react-dom" : " 18.2.0"
14
14
}
You can’t perform that action at this time.
0 commit comments