albert chenA
Convex Community10mo ago
3 replies
albert chen

A permanent staging environment

I have followed the docs and created a separate Convex project to deploy to for our staging env. The problem is our staging environment is done as a "custom environment" in vercel which is tagged with "pre-production" as you can only have one production environment per app. During CI build on merges to the staging branch, it's failing with the error "Detected a non-production build environment and "CONVEX_DEPLOY_KEY" for a production Convex deployment."

What is the best way to solve this? Is there a flag that we can add to bypass this error? Because the other solution is to not use vercel for CI for this and deploy the backend and frontend separately, but I find that defeats the purpose of the elegant deployment flow given by Convex.
Was this page helpful?