Vercel build environment detected but CONVEX_DEPLOY_KEY is not set
I have followed the official tutorial to deploy my convex app with
vercel
. In my Convex dashboard
, I have generated a production deploy key
and I have assigned it to the CONVEX_DEPLOY_KEY
environment variable on Vercel
. Then I have checked only the Production
environment. But the build fails with the error:
Vercel build environment detected but CONVEX_DEPLOY_KEY is not set. Set this environment variable to deploy from this environment. See https://docs.convex.dev/production/hosting
3 Replies
Are you certain that the failing build in Vercel is a production build and not a preview? If you've set the variable and it's spelled correctly, I can't think of a reason it wouldn't be picked up.
Hi @erquhart, yes, I just realised it was indeed a preview build...my bad.
No problem, glad it was simple!