Unverified Commit 0732f2f5 authored by drblessing's avatar drblessing Committed by GitHub

Update 10-router-handlers.mdx (#51850)

Fixes a key bug for RequestCookie type
parent 65f94baa
......@@ -256,7 +256,7 @@ export async function GET(request: Request) {
return new Response('Hello, Next.js!', {
status: 200,
headers: { 'Set-Cookie': `token=${token}` },
headers: { 'Set-Cookie': `token=${token.value}` },
})
}
```
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment