yh
yh3d ago

Ignore "Detected a non-production build environment and "CONVEX_DEPLOY_KEY"" error?

Hi, I was wondering if it is possible to somehow ignore the error: "✖ Detected a non-production build environment and "CONVEX_DEPLOY_KEY" for a production Convex deployment. This is probably unintentional." In my case it is intentional and I want to bypass the error. My use case: i have my production environment pointing to one DB instance and a vercel environment (https://vercel.com/docs/deployments/environments) pointing to another convex production db. The reason im doing this is to separate a single codebase into two databases - in order to separate the user data. I couldnt find a good way to do multitenancy and i just need this second instance to separate concerns/data. Another option is to use a preview db but im afraid it will have less resources and/or other issues ill discover in the future. Thanks!
Environments
Environments are for developing locally, testing changes in a pre-production environment, and serving end-users in production.
2 Replies
Convex Bot
Convex Bot3d 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!
yh
yhOP3d ago
found out about --check-build-environment disable

Did you find this page helpful?