const _hasEnv = true; // Node.js always has access to environment variables const _env: 'development' | 'production' = _hasEnv && (process.env.ENVIRONMENT ?? '').toLowerCase().includes('prod') ? 'production' : 'development'; export const isProd = () => _env === 'production'; const _debug = !isProd() || (_hasEnv && ['y', 't'].some((process.env.DEBUG ?? '').toLowerCase().startsWith)); export const isDebug = () => _debug;