rsnext/examples/with-cookies-next
2022-07-26 20:08:40 -05:00
..
pages Add example with cookies-next package (#31243) 2022-07-22 10:32:54 -05:00
.gitignore Update default gitignore templates (#39051) 2022-07-26 20:08:40 -05:00
next-env.d.ts Add example with cookies-next package (#31243) 2022-07-22 10:32:54 -05:00
package.json Add example with cookies-next package (#31243) 2022-07-22 10:32:54 -05:00
README.md Add example with cookies-next package (#31243) 2022-07-22 10:32:54 -05:00
tsconfig.json Add example with cookies-next package (#31243) 2022-07-22 10:32:54 -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 the example using Vercel or preview live with StackBlitz

Deploy with Vercel

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).