We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a5bdff commit 9c302c0Copy full SHA for 9c302c0
tests/fixtures/middleware-i18n/middleware-shared.ts
@@ -6,15 +6,12 @@ export async function middleware(request: NextRequest) {
6
7
if (response) {
8
response.headers.append('Deno' in globalThis ? 'x-deno' : 'x-node', Date.now().toString())
9
- console.error('[middleware] adding x-runtime')
10
// report Next.js Middleware Runtime (not the execution runtime, but target runtime)
11
// @ts-expect-error EdgeRuntime global not declared
12
response.headers.append('x-runtime', typeof EdgeRuntime !== 'undefined' ? EdgeRuntime : 'node')
13
response.headers.set('x-hello-from-middleware-res', 'hello')
14
15
return response
16
- } else {
17
- console.error('[middleware] NOT adding x-runtime')
18
}
19
20
0 commit comments