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 blogconst 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' }],} Copy
// Minimal config for a blogconst 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' }],}
Optional
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.
Example