[**Documentation**](../../../../README)

***

[Documentation](../../../../README) / [@zerotal/core](../../README) / [index](../README) / isDevSurfaceAllowed

# Function: isDevSurfaceAllowed()

> **isDevSurfaceAllowed**(`env`): `boolean`

Defined in: [support/env.ts:35](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/core/src/support/env.ts#L35)

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`
