[BUG] Nextjs app router js/formbricks.umd.cjs not found
Issue Summary
Can't initialize the Formbricks SDK on Nextjs App Routers but in configurations page I can see the status as Receiving data 💃🕺
Following the docs in here but I get these logs:
🧱 Formbricks - Warning: Formbricks is already initializing.
🧱 Formbricks - Warning: Formbricks is already initializing.
GET http://localhost:3001/<env-id>/js/formbricks.umd.cjs net::ERR_ABORTED 404 (Not Found)
This happens on both local and production. I use Cloudflare and Vercel for production.
Steps to Reproduce
- Copy paste the instructions on here
- Updated variables for the env id and host
Expected behavior
Should not see any error and show the survey
Other information
First time trying to use Formbriks
Screenshots
No response
Environment
- [X] Formbricks Cloud (app.formbricks.com)
- [ ] Self-hosted Formbricks
Desktop (please complete the following information)
- OS: MacOS
- Browser: Chrome
- Node: 20.11.0
- yarn: 1.22.22
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. 😊
/assign
This issue is not part of oss.gg hackathon. Please pick a different one or start with a side quest
I did some debugging and found it was a typo from my end on the API HOST. :(