Netlify Branch Deploy Build Error: "Detected a non-production build environment"
It's nice, being proactive and kills my build. I can't find any documentation to signal "No thank you" to this safety measure.
Any ideas how I can do a branch deploy with production connection?

6 Replies
GitHub
convex-js/src/cli/deploy.ts at main · get-convex/convex-js
TypeScript/JavaScript client library for Convex. Contribute to get-convex/convex-js development by creating an account on GitHub.
looks like it's
--check-build-environment disable
, we can add a mention in this error message at least
Could you say more about why you want to do this, maybe we could mention that case
@imdb sorry for the inconvenience hereIn some cases where there are changes which involve beta testers for fintech web app for example, that require real authentication from hand picked production end-users, and changes are cosmetic in nature it's nice to be able to have this option
@ballingt it's saying its not available

oh i c, I have convex 1.8.0, this is 1.10.0 build
--check-build-environment disable <- this worked after I've upgraded to 1.10.0
@imdb Note this isn't just a prod connection, you can do that by just using the production URL. This is actually deploying the functions from this branch to prod — that's why it's not recommended.
Do you want all previews to be UI-only? For that I'd stop using any convex commands in the preview build command so you're just using different frontend code to talk to the same prod Convex deployment.