vercel error said that cookies was called outside a request scope. #1283
Unanswered
Prantor-Hawlader
asked this question in
Q&A
Replies: 2 comments 1 reply
-
It's definitely working here: https://next-intl-example-app-router-without-i18n-routing.vercel.app/login. If you've adjusted the code for your use case, you might want to review the differences to the original example. |
Beta Was this translation helpful? Give feedback.
0 replies
-
I don't have a src folder in my next.js app. So I moved the i18n.ts file to the root directory, is that the issue? Where should I put that i18n.ts file? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
In [example-app-router-without-i18n-routing], locale.ts file cookies was called in server action. When I deployed this code in Vercel. Error occurred: Unhandled Rejection: Error: cookies was called outside a request scope. How do I handle the cookies in server action?
Beta Was this translation helpful? Give feedback.
All reactions