artur-bx
artur-bx3w ago

Deploy a Backend app with Bun-Convex on Vercel

I'm using Bun and convex, my app its a backend app, basically a CRUD I have some internalActions and I expose through http actions but I see I need to execute npx convex deploy every time that I want to deploy to prod, so I was thinking use Vercel but this project does not have an output dir and probably Vercel works for make a CI/CD convex deployment in production env
6 Replies
Convex Bot
Convex Bot3w 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!
ballingt
ballingt3w ago
but I see I need to execute npx convex deploy every time that I want to deploy to prod
You can use npx convex dev --prod if you want to be syncing to prod instead
artur-bx
artur-bxOP3w ago
and I have to add all my devs to my convex project right? Vercel offer some advantage mora than CI/CD?
ballingt
ballingt3w ago
@artur-bx could you say more about what your'e trying to do? Normally each developer on a team uses a different development deployment so they can all develop independently, at the same time. It sounds like you want to develop against prod for some reason, I don't understand what you want to use Vercel for here
I see I need to execute npx convex deploy every time that I want to deploy to prod,
What's wrong with this from your perspective, it sounds like you dont' want to run command to deploy your code? Normally folks develop their Convex functions with a development deployment, then commit that code to GitHub, the deploy that code with Vercel. It sounds lke you want to have a different flow, what's your ideal flow here @artur-bx?
artur-bx
artur-bxOP3w ago
No, I already have this flow: I test my functions locally, commit and push my code to my repo, and execute npx convex deploy. I'm trying to figure out if there is any additional advantage to using Vercel, apart from the CI/CD benefits.
ballingt
ballingt3w ago
Got it, no, if you already have a way to host your frontend then I don't think Vercel adds much. By using Vercel you would no longer need to run npx convex deploy, you could set up Vercel GitHub integration for this repo and have it deploy commits automatically (what I assume you mean by CD) and you could use Vercel preview deployments and Convex preview deploys to show PR previews (what I assume you also mean by CD). Based on this, I would not use npx convex dev --prod, that's more for if you're skipping the GitHub part.

Did you find this page helpful?