Vercel Deploy failing when running `"npx convex deploy --cmd 'npm run build'"`

Output from container:
Detected Next.js version: 15.3.0-canary.31
Running "npx convex deploy --cmd 'npm run build'"
✖ Please set CONVEX_DEPLOY_KEY to a new key which you can find on your Convex dashboard.
Error: Command "npx convex deploy --cmd 'npm run build'" exited with 1

A screenshot showing the relevant env variable is available is attached, I added it after this error started showing up for the deployment on a PR that I coudln't find a reason for (e.g. other PRs this wasn't happening on, which already had Convex working fine). After this error started showing up I took the screenshot that is attached here and redeployed the PR, then grabbed this error message.
CleanShot_2025-07-11_at_19.05.082x.png
Was this page helpful?