mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
#94306 fixes this for pages, but middleware was still broken when deployed via adapters Coming from https://github.com/getsentry/sentry-javascript/issues/21713 Now the instrumentation test suite takes 11m to run in deployment mode though....
12 lines
257 B
TypeScript
12 lines
257 B
TypeScript
import { cookies } from 'next/headers'
|
|
|
|
export async function GET() {
|
|
const cookieStore = await cookies()
|
|
console.log(cookieStore)
|
|
|
|
return new Response(
|
|
'API Node instrumentationFinished=' +
|
|
(globalThis as any).instrumentationFinished
|
|
)
|
|
}
|