Expand a route path into every concrete path its declared values produce.
An optional segment also yields the path without it, so a localized site declaring
/:lang?/about with lang: ['en', 'fr'] pre-renders /about, /en/about and /fr/about —
the canonical bare path plus its prefixed twins — from one declaration. Several segments expand
as a cartesian product.
A value that cannot satisfy its own segment constraint fails the build rather than pre-rendering
a path the router will never match at runtime.
Expand a route path into every concrete path its declared values produce.
An optional segment also yields the path without it, so a localized site declaring
/:lang?/aboutwithlang: ['en', 'fr']pre-renders/about,/en/aboutand/fr/about— the canonical bare path plus its prefixed twins — from one declaration. Several segments expand as a cartesian product.A value that cannot satisfy its own segment constraint fails the build rather than pre-rendering a path the router will never match at runtime.