Skip to content

UrlRule

reference
1 min readUpdated

Kind: Interface

Source: atloria-monorepo/apps/api/src/tours/tour-targeting.ts

Pure targeting-rule evaluation for tour experiences (D2).

SERVER-SIDE authority: the public config endpoint evaluates URL rules and segment filters here, so the widget only ever receives the experiences that may run on the page it asked about. The widget keeps a mirrored, minimal client evaluator ONLY for the state the server cannot know (localStorage frequency caps, first-visit) — see packages/tour-widget/src/targeting.ts.

No Nest / DOM / IO dependencies — everything here is unit-testable in isolation and safe to reason about.

Properties

PropertyType
match`'exact'
valuestring

Was this page helpful?

Download as PDF