@sanity/routes
    Preparing search index...

    Interface RoutesConfig

    Route configuration document stored in Content Lake.

    Each config represents a "channel" (e.g., "web", "app") and defines how document types map to URLs. Created in Sanity Studio or via seed script.

    // Minimal config for a blog
    const config: RoutesConfig = {
    _id: 'routes-config-web',
    _type: 'routes.config',
    channel: 'web',
    baseUrls: [{ name: 'production', url: 'https://example.com', isDefault: true }],
    routes: [{ types: ['blogPost'], basePath: '/blog' }],
    }
    interface RoutesConfig {
        _id: string;
        _type: "routes.config";
        baseUrls: BaseUrlEntry[];
        channel: string;
        isDefault?: boolean;
        routes: RouteEntry[];
    }
    Index

    Properties

    _id: string
    _type: "routes.config"
    baseUrls: BaseUrlEntry[]
    channel: string
    isDefault?: boolean
    routes: RouteEntry[]