simnova / ownercommunity

MIT License
2 stars 1 forks source link

**suggestion:** Environment check could be more robust #137

Open nguyenduy opened 1 month ago

nguyenduy commented 1 month ago
          **suggestion:** Environment check could be more robust

Consider using a stricter comparison or a configuration management library to handle environment checks more robustly.

const environment = process.env.VITE_DEPLOYMENT_ENVIRONMENT;
if (environment && environment.toLowerCase() === "local") {

_Originally posted by @sourcery-ai[bot] in https://github.com/simnova/ownercommunity/pull/135#discussion_r1629623992_