routing/evaluate
@replohq/sdk/routing/evaluate
Exports
routing/rules
@replohq/sdk/routing/rules
reploRedirect
Validates a redirect rule, returning it unchanged. Throws RedirectRuleValidationError carrying the first failing check’s message.
routing/locale
@replohq/sdk/routing/locale
localeUrl
The URL of a logical path in another locale — the one primitive a language switcher and hreflang alternates need. Within the current host’s scope (or with no domains configured) it is the locale-prefixed path; a locale served by a different domain gets an absolute URL there, dropping the prefix when that domain serves only the one locale. Hidden-mode sites use the prefixed form too: the runtime converts an explicit locale prefix into a cookie plus a clean-URL redirect on arrival.
REPLO_COUNTRY_OVERRIDE_COOKIE
Overrides the visitor’s IP-derived country for testing geo behavior without a VPN — works identically in dev sandboxes and on the published site. At worst it lets a visitor pick which locale they see, which the locale cookie already allows deliberately.
REPLO_LOCALE_COOKIE
Set by the runtime when a visitor explicitly picks a locale (a language switcher link, or landing on a locale-prefixed URL). Negotiation reads it ahead of any detection, so an explicit choice always wins.
reploLocaleRouting
Validates a locale routing config, returning it with every tag canonicalized and defaults applied. Throws LocaleRoutingValidationError carrying the first failing check’s message.
routing/geo
@replohq/sdk/routing/geo