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 .
4 Replies
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.
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
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'
?maybe the same error , without any whitespace it worked for me