multiple convex deployments (nextjs and expo) - do they overwrite?

Hey just a quick question, if running npx convex deploy from one repo (nextjs) which doesnt have all the schema and function files from the other repo (expo), doest this overwrite them in the convex dashboard or potentially delete them? Just being safe.
8 Replies
Convex Bot
Convex Bot4w 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!
lee
lee4w ago
yes it does overwrite, so we don't recommend that
MonkeyInDaWindow
MonkeyInDaWindowOP4w ago
ah ok, so whats the best practice there?
lee
lee4w ago
Convex in Multiple Repositories
Turns out, you can organize your Convex project across multiple repositories! Check out this guide on how to implement this in your project.
MonkeyInDaWindow
MonkeyInDaWindowOP4w ago
oh thank you so much haha thats exactly what i need
lee
lee4w ago
alternatively you could use a monorepo https://www.convex.dev/templates/monorepo
Convex
Monorepo with Next.js and Expo
Fullstack monorepo template feat. Expo, Turbo, Next.js, Convex, Clerk This is a modern TypeScript monorepo template with AI web and native apps featuring: - Turborepo: Monorepo management - Next.js 13: Web app & marketing page - React Native Expo: Mobile/native app - Convex: Backend, database, server functions - [Clerk](ht...
MonkeyInDaWindow
MonkeyInDaWindowOP4w ago
the overwriting would only occur on deployment right? so if im developing in one repo (expo) and very infrequently deploying and developing in the other (nextjs), the next js repo only needs to be updated via the instructions in the first link when deploying right?
lee
lee4w ago
If you're doing the multi-repo setup, only one of the repos has a valid convex/ directory, so only that repo can deploy

Did you find this page helpful?