Skip to content

FlagsElysiaOptions

Defined in: adapters/elysia-shared.ts:30

Options for flagsElysia.

Property Type Description Inherited from Defined in
auth? AuthProvider Authentication provider. Default: anonymous (no auth). FlagsPanelOptions.auth server/create-fetch-handler.ts:44
authorization? AuthorizationProvider Authorization provider. Default: allow all. FlagsPanelOptions.authorization server/create-fetch-handler.ts:46
basePath? string Mount prefix, e.g. "/flags". Default "" (root). FlagsPanelOptions.basePath server/create-fetch-handler.ts:42
core? FlagsCore Reuse an existing core instead of constructing one. FlagsPanelOptions.core 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. FlagsPanelOptions.cors server/create-fetch-handler.ts:89
defaultEnvironmentKey? string Default environment key. Default "production". FlagsPanelOptions.defaultEnvironmentKey server/create-fetch-handler.ts:56
defaultProjectKey? string Default project key. Default "default". FlagsPanelOptions.defaultProjectKey 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. FlagsPanelOptions.hooks server/create-fetch-handler.ts:66
logoUrl? string Logo image URL shown in the navbar in place of the title wordmark. FlagsPanelOptions.logoUrl 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.) FlagsPanelOptions.onEvaluation server/create-fetch-handler.ts:81
onEvaluationError? EvaluationErrorReporter Reporter for errors thrown by onEvaluation. Default: console.warn. FlagsPanelOptions.onEvaluationError server/create-fetch-handler.ts:83
onHookError? HookErrorReporter Reporter for errors thrown by after hooks. Default: console.warn. FlagsPanelOptions.onHookError server/create-fetch-handler.ts:68
prefix? string Mount prefix; also used as the panel basePath. Default "/flags". - adapters/elysia-shared.ts:32
readonly? boolean Block all mutating operations when true. FlagsPanelOptions.readonly 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. FlagsPanelOptions.retention server/create-fetch-handler.ts:74
runtimeStorage? KvStorage Published-snapshot store read by runtimes. Defaults to sourceStorage. FlagsPanelOptions.runtimeStorage server/create-fetch-handler.ts:40
sourceStorage? KvStorage Canonical storage: drafts, snapshot history, audit. Required unless a prebuilt core is given. FlagsPanelOptions.sourceStorage 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. FlagsPanelOptions.streaming server/create-fetch-handler.ts:95
title? string UI title shown in the page and bootstrap config. FlagsPanelOptions.title server/create-fetch-handler.ts:50
uiDir? string Override the directory the bundled UI is served from (defaults to ./ui beside this module). FlagsPanelOptions.uiDir server/create-fetch-handler.ts:58