allen
allen16mo ago

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
lee
lee16mo ago
hi! what version of convex are you running? i think this command might only work with versions >1.5.
Michal Srb
Michal Srb16mo ago
Yup! This requires version 1.5, and either syntax should work then.
allen
allenOP16mo ago
Got it

Did you find this page helpful?