How to get the client's cookie and use it in generateMetadata?
Unanswered
Transvaal lion posted this in #help-forum
![Avatar](https://cdn.discordapp.com/embed/avatars/4.png)
Transvaal lionOP
help
1 Reply
![Avatar](https://cdn.discordapp.com/avatars/548149742207631360/2b1e750ac12613e7f54964225371f39b.webp?size=256)
not-milo.tsx
To access cookies inside the
generateMetadata
function use the cookies
function exported from next/headers
. Keep in mind that this will opt your page out of static rendering and render it dynamically on request, which means you'll see slower load times for that page.