Files
JJ KasperandGitHub bc4515d8b6 Ensure initialHeaders are normalized (#49643)
This makes sure we have the initial headers in the correct shape during
build.

Fixes: https://github.com/vercel/next.js/issues/49374
2023-05-10 21:44:11 -07:00

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
}