module@warp-drive/core/types/runtime
Function getRuntimeConfig()
ts
function getRuntimeConfig(): object;Defined in: warp-drive-packages/core/src/types/runtime.ts:52
Returns the current WarpDrive runtime configuration.
Returns
debug
ts
debug: Partial<LOG_CONFIG>;the currently active logging configuration, see the debugging flags
mirage?
ts
optional mirage?: boolean;whether requests should be treated as being served by Mirage, see setIsMaybeMirage
Example
ts
const { debug, mirage } = getRuntimeConfig();