caltonji
caltonji2w ago

Multi Tenant Automated Deployments

Hello! We're onboarding Convex for our NextJS service. We run multiple deployments of our service (single tenancy), we package our NextJS app with Docker and deploy to AWS using CDK. Do you have any advice for how to integrate the Convex prod deployment steps into our workflow? We want to make sure that Convex code is always in sync with our NextJS code.
Alternatives I've considered: - Run an additional script with every deployment of our NextJS server that will run npx convex deploy with the /convex that we packaged with the NextJS image - Run npx convex deploy as a startup script for our NextJS project Do you have any recommendations?
3 Replies
Convex Bot
Convex Bot2w 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!
caltonji
caltonjiOP2w ago
Is there a suggested approach here for making sure that the deployed convex code aligns with your running NextJS code?
erquhart
erquhart6d ago
Guessing you want separate Convex deployments per aws deployment? You can use the platform API's for this and then run each aws deployment the way the docs suggest, npx convex dev --cmd 'my-build-cmd'
Platform APIs | Convex Developer Hub
Convex Platform APIs are in openly available in Beta. Please contact

Did you find this page helpful?