convex-backend icon indicating copy to clipboard operation
convex-backend copied to clipboard

isNonProdBuildEnvironment check should print more precise info

Open xixixao opened this issue 10 months ago • 2 comments

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.

xixixao avatar Jan 12 '25 13:01 xixixao

Yep agreed! The check in deploy.ts could give a better error message. PR welcome!

nipunn1313 avatar Apr 24 '25 18:04 nipunn1313

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.

Aman1506-web avatar Nov 02 '25 09:11 Aman1506-web