Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deployment issue #59

Open
AJ-DEVS99 opened this issue Sep 12, 2024 · 1 comment
Open

Deployment issue #59

AJ-DEVS99 opened this issue Sep 12, 2024 · 1 comment

Comments

@AJ-DEVS99
Copy link

[Error]: Dynamic server usage: Route /payment-transfer couldn't be rendered statically because it used cookies. See more info here: https://nextjs.org/docs/messages/dynamic-server-error
Screenshot 2024-09-13 at 1 22 24 AM

anyone who faced it, pls help

@spiderakm
Copy link

I noticed you're facing a similar issue that I encountered in production. To fix it, try adding the following line at the top of your file.
export const dynamic = "force-dynamic";
This should ensure that the page uses dynamic rendering. If this doesn't resolve the issue, don't worry—I have other ways to fix it as well. You can connect with me at spider.akm@gmail.com for more help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants