arcjet / arcjet-js

Arcjet JS SDKs. Rate limiting, bot protection, email verification & attack defense for Node.js, Next.js, Bun & SvelteKit.
https://arcjet.com
Apache License 2.0
182 stars 3 forks source link

fix(env): Always rely on isDevelopment & remove isProduction helper #998

Closed blaine-arcjet closed 1 month ago

blaine-arcjet commented 1 month ago

Closes #997

This flips any usage of isProduction to isDevelopment which means we "default" to production mode if an environment is unset. This is safer that defaulting to development mode.

I've removed the isProduction helper completely since we should always be using isDevelopment.

trunk-io[bot] commented 1 month ago

😎 Merged successfully - details.