Stone.js API
    Preparing search index...
    • 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.

      Parameters

      • path: string

        The route path.

      • params: SsgParams

        The declared values, by segment name.

      Returns { missing: string[]; targets: PrerenderTarget[] }

      The expanded targets, plus the segment names that had no declared values.

      When a declared value contradicts its segment's constraint.