Vercel deployment instructions
FYI I couldn't get the Vercel deployment instructions in the docs to work. I ended up going with a build command of
npx convex deploy && yarn build
.
The docs (https://docs.convex.dev/production/hosting/vercel) state to use npx convex deploy --cmd 'npm run build'
, however the screenshot shows npx convex deploy --cmd='npm run build'
(note the =
), but neither worked for me, erring with: error: unknown option '--cmd=npm run build'
3 Replies
hi! what version of convex are you running? i think this command might only work with versions >1.5.
Yup! This requires version 1.5, and either syntax should work then.
Got it