RaFii
RaFii4d ago

Can anyone give me the correct build command override for vercel?

I have used this npx convex deploy --cmd='npm run build' and npx convex deploy && npm run build getting error in both .
No description
4 Replies
lee
lee4d ago
https://docs.convex.dev/production/hosting/vercel it looks like the recommended command doesn't have an equals sign
Using Convex with Vercel | Convex Developer Hub
Host your frontend on Vercel and your backend on Convex.
RaFii
RaFiiOP4d ago
hello @lee in the doc's attached image has a equal sign , I had some other problems in the deployment , after fixing those I used the one with equal
No description
No description
lee
lee4d ago
i just tried it myself and the command works with or without the equals sign what doesn't work, and gets the same error you're seeing, is if there's whitespace around the equals sign from your screenshot there doesn't appear to be whitespace around the equals sign though, so i'm confused. what happens if you do the command npx convex deploy --cmd 'npm run build' ?
RaFii
RaFiiOP4d ago
maybe the same error , without any whitespace it worked for me