DevtoolsOption
DevtoolsOption =
boolean| {allowInProduction?:boolean;allowRemote?:boolean;enabled:boolean;path?:string;token?:string; }
Defined in: devtools/server.ts:48
The devtools server option (ADR 0011). Off by default.
trueenables the inspector outside production (NODE_ENV !== 'production') with a generated token; in production it is ignored with a warning.- In production, enabling needs
{ enabled: true, allowInProduction: true, token }with a token of at least 32 characters, otherwisecreateServerthrows.
Union Members
Section titled “Union Members”boolean
Type Literal
Section titled “Type Literal”{ allowInProduction?: boolean; allowRemote?: boolean; enabled: boolean; path?: string; token?: string; }
allowInProduction?
Section titled “allowInProduction?”
optionalallowInProduction?:boolean
Allow devtools when NODE_ENV === 'production'. Default false.
allowRemote?
Section titled “allowRemote?”
optionalallowRemote?:boolean
Serve non-loopback clients too. Default false: loopback clients only.
enabled
Section titled “enabled”enabled:
boolean
optionalpath?:string
HTTP path of the inspector. Default '/__shoehive'; the socket is <path>/ws.
token?
Section titled “token?”
optionaltoken?:string
Required in production; generated (32 random bytes) in dev if omitted.
