vercel / nextjs-subscription-payments

Clone, deploy, and fully customize a SaaS subscription application with Next.js.
https://subscription-payments.vercel.app/
MIT License
5.79k stars 1.19k forks source link

Remove Next Server Warning Around Cookies #284

Closed derekdowling closed 4 months ago

derekdowling commented 5 months ago

Fixes: https://nextjs.org/docs/messages/dynamic-server-error.

Was encountering:

Error: o [Error]: Dynamic server usage: Page couldn't be rendered statically because it used `cookies`. See more info here: https://nextjs.org/docs/messages/dynamic-server-error
  <...>
  digest: 'DYNAMIC_SERVER_USAGE'
}
vercel[bot] commented 5 months ago

@derekdowling is attempting to deploy a commit to the Vercel Solutions Team on Vercel.

A member of the Team first needs to authorize it.

leerob commented 4 months ago

https://github.com/vercel/nextjs-subscription-payments/pull/278