-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
[BUG] - Cannot use server actions at all within a proxied Docker environment due to Nextjs 14 upgrade #1594
Comments
Thank you for opening your first issue! 🙏❤️ One of our team members will review it and get back to you as soon as it possible. 😊 |
@therecluse26 Do you remember which release you had reverting back to Formbricks 1.1.2? |
@mattinannt Interesting. I was initially using the latest tag, but then rolled back to 1.1.2. I just set up a separate deployment for testing using the 1.2.2 tag explicitly and the original problem has returned, I can't get past the onboarding stage because of the same original error: " |
@therecluse26 Ok, so it seems to be a general problem. Do you have an idea, how to solve this? "Ensure that the reverse proxy is correctly configured to pass the necessary headers to the Next.js application. |
@mattinannt to me, the fact that rolling back to a previous version of Formbricks fixed the problem would indicate an issue somewhere in the application stack. It's odd that it doesn't seem to necessarily be Next 14 related, despite the above linked NextJs issue, but I'm wondering if there's another dependency starting in the 1.2.2 release that might be causing it. |
The issue persists in 1.3.0 |
Issue Summary
This PR caused a regression that completely broke my ability to use the app in a dockerized production environment
I was able to get the app back up and running properly by reverting back to version 1.1.2 which is the last one before the Nextjs 14 upgrade
More info
Steps to Reproduce
x-forwarded-host
andhost
headers do not matchorigin
header from a forwarded Server Actions request. Aborting the action.Expected behavior
App works normally and user doesn't get stuck at onboarding due to broken Server Actions.
Other information
This appears to be due to the Next 14 upgrade, and there appear to be some fixes coming soon in Nextjs, that will likely need to be integrated into this app.
Screenshots
No response
Environment
Desktop (please complete the following information)
The text was updated successfully, but these errors were encountered: