milk enjoyerM
Convex Community2y ago
27 replies
milk enjoyer

Issues with Vercel deployment

I am encountering something strange on Vercel. I am following this guide: https://docs.convex.dev/production/hosting/vercel

I am very certain I have all the environment variables needed, but I am encountering some issues.

When I include the CONVEX_DEPLOY_TOKEN, I get
Running "bunx convex deploy --cmd 'bun run build'"
401 Unauthorized: TokenInvalid: Token failed validation: InvalidComponents
Authenticate with `npx convex dev
`

When I do not include the CONVEX_DEPLOY_TOKEN, I get:
Running "bunx convex deploy --cmd 'bun run build'"
✖ 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


I have attached some screenshots of my Vercel configuration.
image.png
image.png
Was this page helpful?