Michal Srb
Michal Srb3y ago

Hey guys have you ever run into this

Hey guys, have you ever run into this deployment failure with Vercel? I'm following Convex's Quickstart. Deployment log at Vercel:
Running "npx convex deploy && npm run build" - Checking for changed table indexes... ✖️ Error: Unable to build indexes on https://giddy-shrew-854.convex.cloud ✖️ Checking for changed table indexes... 403 Forbidden: BadAdminKey: The provided admin key was invalid for this instance Error: Command "npx convex deploy && npm run build" exited with 1
I do have CONVEX_DEPLOY_KEY set in the config. Is "admin key" referring to deploy key? Is this error coming from Convex? (the log doesn't make this very obvious)
2 Replies
Michal Srb
Michal SrbOP3y ago
I think this was either because I had development selected instead of production in the Convex dash, or because I had to reload the Convex dash (it was somehow stale).
lee
lee3y ago
Hi! Yes admin key refers to the same thing as deploy key. And in the dashboard you want to have Production selected when generating the deploy key. (we can make the error message and dashboard less confusing, i'll make a note). Let me know if using a new deploy key doesn't fix it

Did you find this page helpful?