f7b654e875
Added the types for req and res. ## Bug - [ ] Related issues linked using `fixes #number` - [ ] Integration tests added - [ ] Errors have a helpful link attached, see [`contributing.md`](https://github.com/vercel/next.js/blob/canary/contributing.md) ## Feature - [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR. - [ ] Related issues linked using `fixes #number` - [ ] [e2e](https://github.com/vercel/next.js/blob/canary/contributing/core/testing.md#writing-tests-for-nextjs) tests added - [ ] Documentation added - [ ] Telemetry added. In case of a feature if it's used or not. - [ ] Errors have a helpful link attached, see [`contributing.md`](https://github.com/vercel/next.js/blob/canary/contributing.md) ## Documentation / Examples - [ ] Make sure the linting passes by running `pnpm build && pnpm lint` - [x] The "examples guidelines" are followed from [our contributing doc] Here is the documentation followed [Nextjs Link](https://nextjs.org/docs/basic-features/typescript) Co-authored-by: JJ Kasper <22380829+ijjk@users.noreply.github.com> |
||
---|---|---|
.. | ||
pages | ||
.gitignore | ||
package.json | ||
README.md | ||
tsconfig.json |
With cookies-next
In this example, we are getting, setting and removing cookies
This package works on client side and server side
- can be used on the client side, anywhere
- can be used for server side rendering in getServerSideProps
- can be used in API handlers
Deploy your own
Deploy the example using Vercel or preview live with StackBlitz
How to use
Execute create-next-app
with npm or Yarn to bootstrap the example:
npx create-next-app --example with-cookies-next with-cookies-next-app
# or
yarn create next-app --example with-cookies-next with-cookies-next-app
Deploy it to the cloud with Vercel (Documentation).