@sanity/routes
    Preparing search index...

    Variable routeMapConst

    routeMap: { name: "routes.map"; type: "document" } & Omit<
        DocumentDefinition,
        "preview",
    > & {
        preview?: PreviewConfig<
            { channel: string; documentType: string; entries: string },
            Record<"entries" | "channel" | "documentType", any>,
        >;
    } = ...

    Use createRouteMapType() via routesPlugin({ types: [...] }) instead. This static export uses the object fallback (no proper reference types).