Skip to content

LinksPanelOptions

Defined in: src/server/create-fetch-handler.ts:38

Options for the panel handler (shared by every framework adapter).

Property Type Description Defined in
analytics? AnalyticsSink Analytics sink when no core is given. Default: KV rollups in storage. src/server/create-fetch-handler.ts:44
auth? AuthProvider Authentication provider. Default: anonymous (no auth). src/server/create-fetch-handler.ts:55
authorization? AuthorizationProvider Authorization provider. Default: allow all. src/server/create-fetch-handler.ts:57
basePath? string Mount prefix, e.g. "/links". Default "" (root). src/server/create-fetch-handler.ts:53
core? LinksCore Reuse an existing core (e.g. the one your redirect handler uses). src/server/create-fetch-handler.ts:42
coreOptions? Omit<LinksCoreOptions, | "storage" | "analytics" | "hooks" | "onHookError" | "readonly" | "defaultDomain"> Extra core options when no core is given (slugs, attribution window, …). src/server/create-fetch-handler.ts:48
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 LinksCorsOptions. src/server/create-fetch-handler.ts:87
defaultDomain? string Shared default domain when no core is given (e.g. "go.acme.com"). src/server/create-fetch-handler.ts:46
hooks? LinksHooksInput Control-plane hooks fired around admin mutations. Ignored when core is supplied. src/server/create-fetch-handler.ts:74
logoUrl? string Logo image URL shown in the navbar in place of the title wordmark. src/server/create-fetch-handler.ts:70
onHookError? HookErrorReporter Reporter for errors thrown by after hooks. Ignored when core is supplied. src/server/create-fetch-handler.ts:76
portal? LinksPortalOptions Analytics viewer tokens (ADR 0009): requests bearing a valid lvt_… token act as a viewer principal force-scoped to the token’s tenant, link set and actions. Mint tokens with createViewerToken or POST /api/tenants/:tenant/viewer-tokens. src/server/create-fetch-handler.ts:64
readonly? boolean Block all mutating operations when true. src/server/create-fetch-handler.ts:66
redirectBasePath? string Path prefix the redirect handler serves links under (its basePath, e.g. "/l"), so QR codes encode the right short URL. Default: links at the root. src/server/create-fetch-handler.ts:81
storage? KvStorage Links storage. Required unless a prebuilt core is supplied. src/server/create-fetch-handler.ts:40
title? string UI title shown in the page and bootstrap config. src/server/create-fetch-handler.ts:68
uiDir? string Override the directory the bundled UI is served from (defaults to ./ui beside this module). src/server/create-fetch-handler.ts:72