Skip to content

Graphorin API reference v0.1.0


Graphorin API reference / @graphorin/provider / / assertProductionMiddleware

Function: assertProductionMiddleware()

ts
function assertProductionMiddleware(provider, options?): void;

Defined in: packages/provider/src/middleware/production-hook.ts:35

Throw MissingProductionMiddlewareError if a required middleware is missing from the chain rooted at provider. The check runs only when NODE_ENV === 'production' unless force is true.

Parameters

ParameterType
providerProvider
optionsProductionStartupHookOptions

Returns

void

Stable