I’m trying to deploy a full stack next.js project, production is working just fine, when i try to use the preview environment for all my commits i get this strange error on the client: previewOrigin not set yey.
Can’t find anything on google, there is not much to say about my configs, just running a basic next.js project. Full error below:
feedback.html?dpl=dpl_64ny8owgkdSr7NRVmU2VefZxkKw3:9 Uncaught Error: previewOrigin not set yet
at E (feedback.html?dpl=dpl_64ny8owgkdSr7NRVmU2VefZxkKw3:9:3425)
at feedback.html?dpl=dpl_64ny8owgkdSr7NRVmU2VefZxkKw3:9:77282
Thanks for sharing this - it is an odd error! I’ve not seen it before.
The error “previewOrigin not set yet” suggests that there’s an issue with setting up the preview environment for your deployment.
And this is occurring in a file named feedback.html, which is likely part of Vercel’s deployment feedback system.
Could you try the following:
Check your Vercel project settings to ensure all configurations related to preview deployments are correct.
Verify that your project’s build process is completing successfully before the preview attempt.
If you’re using any custom scripts or configurations in your vercel.json file (if you have one), review them for any potential issues.
Try redeploying your project to see if the error persists.