6290689281
Converted example to TypeScript to match Contribution docs. - Set cookies using `NextResponse` instead of the `Set-Cookie` header ## Documentation / Examples - [X] Make sure the linting passes by running `pnpm build && pnpm lint` - [X] The "examples guidelines" are followed from [our contributing doc](https://github.com/vercel/next.js/blob/canary/contributing/examples/adding-examples.md)
19 lines
369 B
JSON
19 lines
369 B
JSON
{
|
|
"private": true,
|
|
"scripts": {
|
|
"dev": "next dev",
|
|
"build": "next build",
|
|
"start": "next start"
|
|
},
|
|
"dependencies": {
|
|
"next": "latest",
|
|
"react": "^18.2.0",
|
|
"react-dom": "^18.2.0"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^18.11.9",
|
|
"@types/react": "^18.0.25",
|
|
"@types/react-dom": "^18.0.8",
|
|
"typescript": "^4.8.4"
|
|
}
|
|
}
|