Next.js Discord

Discord Forum

Workaround to use cookies() inside generateStaticParams

Unanswered
Cattle Egret posted this in #help-forum
Open in Discord
Cattle EgretOP
Hi,
does anyone know of a workaround to use cookies() to get a JWT from a cookie into a fetch request inside generateStaticParams()?

It seems to be an open issue, but I haven't been able to find a workaround yet.

Issue link:
https://github.com/vercel/next.js/issues/45979

0 Replies