How do i deploy backend?
I followed https://docs.convex.dev/production/hosting/ and tried both vercel and netlify, but it only deploys the frontend ive got all of the env keys correct and it still does not work
Hosting and Deployment | Convex Developer Hub
Share your Convex backend and web app with the world.
13 Replies
Thanks for posting in <#1088161997662724167>.
Reminder: If you have a Convex Pro account, use the Convex Dashboard to file support tickets.
- Provide context: What are you trying to achieve, what is the end-user interaction, what are you seeing? (full error message, command output, etc.)
- Use search.convex.dev to search Docs, Stack, and Discord all at once.
- Additionally, you can post your questions in the Convex Community's <#1228095053885476985> channel to receive a response from AI.
- Avoid tagging staff unless specifically instructed.
Thank you!
npx convex deploy
deploys your backend to your production deploymentand you can find your production convex deployment URL in the dashboard... like this
that .cloud URL is what your
NEXT_PUBLIC_CONVEX_URL
should be set to in your vercel project(you should generally not be setting
NEXT_PUBLIC_CONVEX_URL
or similar in vercel / netlify, just CONVEX_DEPLOY_KEY
).
Are there any logs in vercel / netlify? Successful deploys usually say something like "Deploying to https://happy-animal-123.convex.cloud"It looks like this is working now @Sefuty? What do you mean by "only deploys the frontend," these logs say the convex functions have been deployed to dynamic-something-???.convex.cloud
whenever i try to create a note or anything related to my functions they dont really work
the do work in the development tho
or when i create a flashcard it wont relly work
Any error messages?
When you say "Failed to create a new note" there must be an error message behind