Deploying Next 14 + Convex in Vercel
When I first try deploying my application, it throw an error because it was missing the CONVEX_DEPLOY_KEY. So I added it and reployed, but now it's saying:
Detected a non-production build environment and "CONVEX_DEPLOY_KEY" for a production Convex deployment.
If someone had this issue, I would love to hear how you fix it 😄
8 Replies
Where are you building this app?
This is a warning you can ignore if you need to, but often it means something about your setup is surprising
Is this building in GitHub CI, on Vercel, on your local machine, etc?
I am doing the deployment in vercel importing everything from my github
And what version if Convex are you using?
I beive the last one, but let me check
"convex": "^1.10.0",
I could try with netlify instead, to see if it works there
Vercel is the mist common environment folks use, it should be fine.
Okey, i'll try again then
--check-build-environment=false
to your deploy command to ignore this warning,Preview Deployments | Convex Developer Hub
Use Convex with your hosting provider's preview deployments