@sanity/routes
    Preparing search index...

    Function buildRouteMap

    • Builds route map shards for all types in a channel's route config.

      Reads the route config from Content Lake, queries all documents per type, evaluates pathExpression GROQ, and writes shards via createOrReplace.

      Parameters

      • client: SanityClient

        A configured SanityClient with write access

      • channel: string

        The channel name (e.g. "web")

      Returns Promise<BuildResult>

      BuildResult with counts and any errors