Skip to main content
zerotal

Documentation


Documentation / @zerotal/core / index / isDevSurfaceAllowed

Function: isDevSurfaceAllowed()

isDevSurfaceAllowed(env): boolean

Defined in: support/env.ts:35

Whether env names an environment where dev-only surfaces (the devtools trace inspector, the monitor panel's default open access, dev error pages) may be exposed without authentication.

Only explicitly non-production environments qualify. Unset or unknown values return false — the gate fails closed, so a production deploy that forgets to set APP_ENV (or sets staging) never accidentally exposes an internal surface. This is the inverse-but-stricter companion to isProdLike: isProdLike("") is false, but so is this.

Parameters

env

string

Returns

boolean