88038ca21f
Convert `api-routes-middleware` example to TypeScript to match Contribution docs. - Updated cookie util to match the [extending `res` with TypeScript Next.js docs](https://nextjs.org/docs/api-routes/api-middlewares#connectexpress-middleware-support) ## Documentation / Examples - [X] Make sure the linting passes by running `pnpm lint` - [X] The examples guidelines are followed from [our contributing doc](https://github.com/vercel/next.js/blob/canary/contributing.md#adding-examples) )
21 lines
409 B
JSON
21 lines
409 B
JSON
{
|
|
"private": true,
|
|
"scripts": {
|
|
"dev": "next",
|
|
"build": "next build",
|
|
"start": "next start"
|
|
},
|
|
"dependencies": {
|
|
"cookie": "^0.5.0",
|
|
"next": "latest",
|
|
"react": "^18.2.0",
|
|
"react-dom": "^18.2.0",
|
|
"swr": "^1.3.0"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^18.0.2",
|
|
"@types/react": "^18.0.15",
|
|
"@types/react-dom": "^18.0.6",
|
|
"typescript": "^4.7.4"
|
|
}
|
|
}
|