imdb
imdb13mo ago

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?
No description
6 Replies
ballingt
ballingt13mo ago
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.
ballingt
ballingt13mo ago
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 here
imdb
imdbOP13mo ago
In 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
imdb
imdbOP13mo ago
@ballingt it's saying its not available
No description
imdb
imdbOP13mo ago
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
ballingt
ballingt12mo ago
@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.

Did you find this page helpful?