Skip to content

basalt / ai-mcp/src / assertDevOnly

Function: assertDevOnly() ​

> assertDevOnly(env, allowProduction?): void

Defined in: ai-mcp/src/guard.ts:35

Throw AiMcpProductionError when env.NODE_ENV is production — unless allowProduction is set or env carries the override variable.

Parameters ​

env ​

Record<string, string | undefined>

allowProduction? ​

boolean = false

Returns ​

void

Released under the MIT License.