yhY
Convex Community3mo ago
2 replies
yh

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 are for developing locally, testing changes in a pre-production environment, and serving end-users in production.
Environments
Was this page helpful?