NerdkidChiki
NerdkidChiki15mo ago

How do i configure my convex database for deployment to production

i am done building a mini project(reddit clone) using convex and clerk. How do i deploy the website for production. I am referring to my environment variables for clerk and my database. A link to a resource on how to deploy a convex app from scratch will be very helpful as well 🙏. The docs are not really concise on how to go about this.
6 Replies
jamwt
jamwt15mo ago
@NerdkidChiki hey, did you see https://docs.convex.dev/production/hosting/
Hosting and Deployment | Convex Developer Hub
Share your Convex backend and web app with the world.
jamwt
jamwt15mo ago
we'd recommend using netlify or vercel both work great
NerdkidChiki
NerdkidChikiOP15mo ago
Just read that the clerk provider doesn't support https://<site-name>.vercel.app ,does that mean I can't host for free on vercel?
Omar Farooq
Omar Farooq15mo ago
@NerdkidChiki you can setup a domain in your vercel account as a solution https://vercel.com/docs/projects/domains/add-a-domain, and works on the free tier
NerdkidChiki
NerdkidChikiOP15mo ago
i am trying to deploy to netlify but facing issues due to build command. "npm run build && npx convex deploy" is giving some issues. Is there a particular way to type it in?
ballingt
ballingt15mo ago
@NerdkidChiki what kind of issues, can you post the error messages? Common problems at this point are not having a CONVEX_DEPLOY_KEY or NEXT_PUBLIC_CONVEX_URL or whatever the correct value is for your web framework.

Did you find this page helpful?