Skip to content

PluginSetupContext

PluginSetupContext<TRequires> = object & TRequires

Defined in: packages/core/src/types.ts:29

The context object passed to a plugin’s setup() function.

Contains the current request, validated env, and all values provided by prior plugins (typed via TRequires).

env: Record<string, unknown>

The validated environment bindings.

request: Request

The incoming HTTP request for the current invocation.

TRequires

Intersection of prior plugin provides (e.g., AuthPluginProvides).