Files
vercel__next.js/examples/with-cookies-next
Remco Haszing 7aa5d16231 Use the automatic runtime for type checking (#83159)
Co-authored-by: Sebastian "Sebbie" Silbermann <silbermann.sebastian@gmail.com>
2025-09-02 12:35:42 +02:00
..
2025-04-23 20:48:58 -05:00

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 with Vercel

How to use

Execute create-next-app with npm, Yarn, or pnpm to bootstrap the example:

npx create-next-app --example with-cookies-next with-cookies-next-app
yarn create next-app --example with-cookies-next with-cookies-next-app
pnpm create next-app --example with-cookies-next with-cookies-next-app

Deploy it to the cloud with Vercel (Documentation).