/** * Pure environment constants — shared across all @djangocfg UI packages. * * Keep this to framework-agnostic env primitives only. Feature flags that carry * domain meaning (e.g. DPoP auth, static-build behaviour) live in the package * that owns them — `dpopEnabled` / `isStaticBuild` are exported from * `@djangocfg/api` (the lowest shared package, which implements DPoP). */ export const nodeEnv = process.env.NODE_ENV || 'development'; export const isDev = nodeEnv === 'development'; export const isProd = !isDev; export const isTest = nodeEnv === 'test'; export const isBrowser = typeof window !== 'undefined'; export const isServer = typeof window === 'undefined';