OptionalbaseExplicit base URL — highest priority, overrides all baseUrl entries in config.
OptionalcacheCache TTL in milliseconds (default: 30000). Controls how long the route config is cached before re-fetching.
OptionalchannelThe channel name to resolve routes for (e.g. "web"). Optional — if omitted, uses the default config.
OptionalenvironmentEnvironment name to match against baseUrls[].name (e.g., 'production', 'staging').
OptionallocaleDefault locale for all resolutions. Can be overridden per-call via options.locale.
OptionalonCallback invoked when RouteResolver.resolveUrlById returns null.
Receives a DiagnosisResult with the failure details. Use for error
tracking (e.g., Sentry). Only called when resolution fails — not on successful resolution.
OptionalwarnLog a diagnostic message to console when RouteResolver.resolveUrlById
returns null. Set to process.env.NODE_ENV !== 'production' for
development-only warnings.
Options for createRouteResolver.
Example