FlagsPanelOptions
Defined in: server/create-fetch-handler.ts:33
Options for the panel handler (shared by every framework adapter).
Extended by
Section titled “Extended by”Properties
Section titled “Properties”| Property | Type | Description | Defined in |
|---|---|---|---|
auth? |
AuthProvider |
Authentication provider. Default: anonymous (no auth). | server/create-fetch-handler.ts:44 |
authorization? |
AuthorizationProvider |
Authorization provider. Default: allow all. | server/create-fetch-handler.ts:46 |
basePath? |
string |
Mount prefix, e.g. "/flags". Default "" (root). |
server/create-fetch-handler.ts:42 |
core? |
FlagsCore |
Reuse an existing core instead of constructing one. | server/create-fetch-handler.ts:60 |
cors? |
CorsOptions |
Enable CORS on the handler itself — answers OPTIONS preflights and attaches Access-Control-* headers to every response, so a cross-origin embed works regardless of the host framework. See FlagsCorsOptions. |
server/create-fetch-handler.ts:89 |
defaultEnvironmentKey? |
string |
Default environment key. Default "production". |
server/create-fetch-handler.ts:56 |
defaultProjectKey? |
string |
Default project key. Default "default". |
server/create-fetch-handler.ts:54 |
hooks? |
FlagsHooksInput |
Control-plane hooks fired around admin mutations (see ../hooks/contract.FlagsHooks). Ignored when core is supplied — configure hooks on that core instead. |
server/create-fetch-handler.ts:66 |
logoUrl? |
string |
Logo image URL shown in the navbar in place of the title wordmark. | server/create-fetch-handler.ts:52 |
onEvaluation? |
EvaluationListener |
Fire-and-forget observer invoked per OFREP evaluation served by this panel (off the response path). For usage/exposure pipelines. See ../evaluation-sink.EvaluationListener. (In-process evaluation is observed via the provider’s own onEvaluation option.) |
server/create-fetch-handler.ts:81 |
onEvaluationError? |
EvaluationErrorReporter |
Reporter for errors thrown by onEvaluation. Default: console.warn. |
server/create-fetch-handler.ts:83 |
onHookError? |
HookErrorReporter |
Reporter for errors thrown by after hooks. Default: console.warn. |
server/create-fetch-handler.ts:68 |
readonly? |
boolean |
Block all mutating operations when true. | server/create-fetch-handler.ts:48 |
retention? |
RetentionOptions |
Snapshot/audit retention policy, applied after each publish. Ignored when a prebuilt core is supplied — configure it on that core instead. See ../core.RetentionOptions. |
server/create-fetch-handler.ts:74 |
runtimeStorage? |
KvStorage |
Published-snapshot store read by runtimes. Defaults to sourceStorage. |
server/create-fetch-handler.ts:40 |
sourceStorage? |
KvStorage |
Canonical storage: drafts, snapshot history, audit. Required unless a prebuilt core is given. |
server/create-fetch-handler.ts:38 |
streaming? |
boolean |
Enable the opt-in OFREP SSE stream ({basePath}/ofrep/v1/stream) that pushes configuration_changed events on publish/rollback. Requires a streaming runtime (Bun, the standalone serve, Hono, Elysia). Default false. |
server/create-fetch-handler.ts:95 |
title? |
string |
UI title shown in the page and bootstrap config. | server/create-fetch-handler.ts:50 |
uiDir? |
string |
Override the directory the bundled UI is served from (defaults to ./ui beside this module). |
server/create-fetch-handler.ts:58 |