Skip to content

LinkRule

Defined in: src/schema.ts:181

A targeting rule: when every condition matches, redirect to url or pick one of variants deterministically per visitor. Rules are evaluated in order; the first match wins (ADR 0011).

Property Type Description Defined in
id string - src/schema.ts:182
name? string Optional label shown in the UI. src/schema.ts:184
url? string - src/schema.ts:187
variants? Variant[] - src/schema.ts:188
when Condition[] ANDed conditions. An empty list always matches (useful for a pure A/B split). src/schema.ts:186