Skip to main content
zerotal

Documentation


Documentation / @zerotal/flow / index / FlowConfigShape

Interface: FlowConfigShape

Defined in: flow/src/config.ts:4

Properties

cspSafe

cspSafe: boolean

Defined in: flow/src/config.ts:13

Serve the client runtime in CSP-safe mode — no 'unsafe-eval' required.

Costs a little payload and start-up time, so it is off unless you actually ship a Content-Security-Policy without unsafe-eval.

Default: false, or the ZT_FLOW_CSP_SAFE / APP_CSP_SAFE env flag.


persistentMiddleware

persistentMiddleware: (string | MiddlewareClass)[]

Defined in: flow/src/config.ts:23

Global middleware re-applied on every WebSocket update (Livewire-style persistent middleware). Entries are matched against the app's global pipeline by class reference or by class name.

Route middleware always re-runs and does not need to be listed here.

Default: ["SessionMiddleware", "PersistUserMiddleware", "BearerTokenMiddleware"]