Skip to content

Commit 9c302c0

Browse files
committed
chore: remove debug logs
1 parent 2a5bdff commit 9c302c0

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

tests/fixtures/middleware-i18n/middleware-shared.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,12 @@ export async function middleware(request: NextRequest) {
66

77
if (response) {
88
response.headers.append('Deno' in globalThis ? 'x-deno' : 'x-node', Date.now().toString())
9-
console.error('[middleware] adding x-runtime')
109
// report Next.js Middleware Runtime (not the execution runtime, but target runtime)
1110
// @ts-expect-error EdgeRuntime global not declared
1211
response.headers.append('x-runtime', typeof EdgeRuntime !== 'undefined' ? EdgeRuntime : 'node')
1312
response.headers.set('x-hello-from-middleware-res', 'hello')
1413

1514
return response
16-
} else {
17-
console.error('[middleware] NOT adding x-runtime')
1815
}
1916
}
2017

0 commit comments

Comments
 (0)