mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
This makes sure we have the initial headers in the correct shape during build. Fixes: https://github.com/vercel/next.js/issues/49374
9 lines
192 B
JavaScript
9 lines
192 B
JavaScript
import { NextResponse } from 'next/server'
|
|
|
|
export function GET() {
|
|
const res = new NextResponse()
|
|
res.cookies.set('theme', 'light')
|
|
res.cookies.set('my_company', 'ACME')
|
|
return res
|
|
}
|