Next.js Discord

Discord Forum

DynamicServerError: Dynamic server usage: cookies

Unanswered
definitelynotshourya posted this in #help-forum
Open in Discord
using next 13.4.5

During build, the problematic api route comes up as λ /workspace/api/pexels indicating it is dynamic.

Somehow the api calls work in dev mode, but not in prod mode.

1 Reply

@definitelynotshourya you might hit this issue
https://github.com/vercel/next.js/issues/49373