LinksCoreOptions
Defined in: src/core.ts:222
Options for createLinksCore.
Properties
Section titled “Properties”| Property | Type | Description | Defined in |
|---|---|---|---|
allowAppSchemes? |
boolean |
Allow app-scheme destinations (myapp://…). Default true. |
src/core.ts:240 |
analytics? |
AnalyticsSink |
Analytics sink. Default: KV rollups in storage (createKvAnalytics). |
src/core.ts:225 |
attributionWindow? |
LinksDuration |
How long click refs stay claimable for conversions. Default "90d". |
src/core.ts:244 |
auditLogLimit? |
number |
Max audit entries kept per tenant. Default 1000. | src/core.ts:248 |
counterFlushMs? |
number |
Click counter flush interval (ms). Default 2000. | src/core.ts:250 |
defaultDomain? |
string |
A shared domain registered automatically on first use and used when a link names no domain, e.g. "go.acme.com" or "localhost". |
src/core.ts:236 |
deferredTtl? |
LinksDuration |
Deferred deep-link handoff lifetime. Default "2h". |
src/core.ts:246 |
hooks? |
LinksHooksInput |
- | src/core.ts:226 |
now? |
() => number |
Clock (epoch millis). | src/core.ts:231 |
onHookError? |
HookErrorReporter |
- | src/core.ts:227 |
readonly? |
boolean |
Block all mutations. | src/core.ts:229 |
reservedSlugs? |
readonly string[] |
Slugs the redirect handler never serves. Default DEFAULT_RESERVED_SLUGS. | src/core.ts:238 |
storage |
KvStorage |
- | src/core.ts:223 |
urlPolicy? |
(url) => string | null | undefined |
Extra destination URL check (e.g. block-list); return a message to reject. | src/core.ts:242 |