convex-backend
convex-backend copied to clipboard
isNonProdBuildEnvironment check should print more precise info
When isNonProdBuildEnvironment is used in the CLI and it fails the build, it should say specifically I detected VERCEL because VERCEL env var is truthy, but the VERCEL_ENV env var is not set to "production" etc.
Yep agreed! The check in deploy.ts could give a better error message. PR welcome!
Hi @xixixao @nipunn1313 I’ve implemented a more detailed message for isNonProdBuildEnvironment() as discussed in #28. Tested locally with both Vercel and Netlify env vars — works as expected.
Thanks for maintaining this amazing project! Would love your feedback.