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
Redirect after payment is directing to localhost:8081 #13
Comments
Can you let me know if you have set the environment variable |
Yes I have NEXT_PUBLIC_APP_URL set inside .env. The redirect send to the right place when doing development but when in production it always redirect to http://localhost:8081/generate |
I believe the issue comes from the following line |
When I change this line in src/app/api/subscribe/route.ts from |
I'm actually confused here, is this happening because Google app engine is not reading the envs? I mean according to you it works when it is hardcoded! |
I'm confused as well, yes it could be the google app engine, if I ever find out why I will post it here. |
Describe the bug
When subscribing to the free plan the app redirect to the right place www.example.com/generate but when the user subscribe to the non-free plan the redirect send the user to localhost:8081/generate
Additional context
I'm using google app engine for hosting.
The text was updated successfully, but these errors were encountered: