albert chen
albert chen
CCConvex Community
Created by albert chen on 4/11/2025 in #support-community
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.
2 replies