voidV
Convex Community10mo ago
5 replies
void

Vercel deployment fails when using `npx convex deploy --cmd '...'`

I've overridden the build command in Vercel when adding my project which is a basic Vite/React 19 project using Convex to be npx convex deploy --cmd='vite build'

The error is:
✗ Build failed in 800ms
error during build:
Could not resolve "../convex/_generated/api" 


However, when I change the build command to npx convex deploy && vite build things seem to work okay. Is this okay or is the --cmd option when calling convex deploy the ideal way?
Was this page helpful?