File tree 3 files changed +16
-3
lines changed
3 files changed +16
-3
lines changed Original file line number Diff line number Diff line change @@ -139,6 +139,7 @@ export const buildResponse = async ({
139
139
}
140
140
141
141
if ( res . headers . get ( 'x-middleware-next' ) === '1' ) {
142
+ res . headers . delete ( 'x-middleware-next' )
142
143
return addMiddlewareHeaders ( context . next ( ) , res )
143
144
}
144
145
return res
Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ export default async (request: Request) => {
66
66
// The side effect is that responses which do contain data will not be streamed to the client,
67
67
// but that's fine for redirects.
68
68
// TODO: Remove once a fix has been rolled out.
69
- if ( response . status > 300 && response . status < 400 ) {
69
+ if ( ( response . status > 300 && response . status < 400 ) || response . status >= 500 ) {
70
70
const body = await response . text ( )
71
71
return new Response ( body || null , response )
72
72
}
Original file line number Diff line number Diff line change 116
116
"test/e2e/basepath.test.ts" : {
117
117
"flakey" : [
118
118
" basePath should not update URL for a 404" ,
119
- " basePath should handle 404 urls that start with basePath"
119
+ " basePath should handle 404 urls that start with basePath" ,
120
+ " basePath should show 404 for page not under the /docs prefix"
120
121
]
121
122
},
122
123
"test/e2e/app-dir/app/index.test.ts" : {
123
124
"flakey" : [
124
125
" app dir - basic should return the `vary` header from edge runtime" ,
125
126
" app dir - basic should return the `vary` header from pages for flight requests"
126
127
]
128
+ },
129
+ "test/e2e/app-dir/conflicting-page-segments/conflicting-page-segments.test.ts" : {
130
+ "flakey" : [
131
+ " conflicting-page-segments should throw an error when a route groups causes a conflict with a parallel segment"
132
+ ]
133
+ },
134
+ "test/e2e/app-dir/actions-navigation/index.test.ts" : {
135
+ "flakey" : [
136
+ " app-dir action handling should handle actions correctly after following a relative link"
137
+ ]
127
138
}
128
139
},
129
140
"rules" : {
168
179
" test/e2e/trailingslash-with-rewrite/index.test.ts" ,
169
180
" test/e2e/transpile-packages/index.test.ts" ,
170
181
" test/e2e/typescript-version-no-warning/typescript-version-no-warning.test.ts" ,
171
- " test/e2e/typescript-version-warning/typescript-version-warning.test.ts"
182
+ " test/e2e/typescript-version-warning/typescript-version-warning.test.ts" ,
183
+ " test/e2e/app-dir/app/useReportWebVitals.test.ts"
172
184
]
173
185
}
174
186
}
You can’t perform that action at this time.
0 commit comments