Skip to main content

Function: isDevelopment()

isDevelopment(): boolean

Defined in: shared/utils/environment.ts:126

Check if running in development mode. Safe alternative to direct process.env.NODE_ENV access.

Returnsโ€‹

boolean

True if in development mode

Remarksโ€‹

Uses strict equality check against 'development' string. Only recognizes the standard NODE_ENV value 'development' - variants like 'dev' are not supported. This ensures consistent behavior across the application.

Exampleโ€‹

if (isDevelopment()) {
console.log("Debug information");
}