Sefuty
Sefuty•4w ago

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
Convex Bot
Convex Bot•4w ago
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!
jamwt
jamwt•4w ago
npx convex deploy deploys your backend to your production deployment
jamwt
jamwt•4w ago
and you can find your production convex deployment URL in the dashboard... like this
No description
jamwt
jamwt•4w ago
that .cloud URL is what your NEXT_PUBLIC_CONVEX_URL should be set to in your vercel project
sshader
sshader•4w ago
(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"
Sefuty
SefutyOP•4w ago
No description
Sefuty
SefutyOP•4w ago
No description
Sefuty
SefutyOP•4w ago
No description
No description
ballingt
ballingt•4w ago
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
Sefuty
SefutyOP•4w ago
whenever i try to create a note or anything related to my functions they dont really work
No description
No description
Sefuty
SefutyOP•4w ago
the do work in the development tho
Sefuty
SefutyOP•4w ago
or when i create a flashcard it wont relly work
No description
FleetAdmiralJakob 🗕 🗗 🗙
Any error messages? When you say "Failed to create a new note" there must be an error message behind

Did you find this page helpful?