Const
Sanity plugin that registers the route configuration schema types.
Usage in sanity.config.ts:
import {routesPlugin} from '@sanity/routes'export default defineConfig({ plugins: [ routesPlugin({ types: ['article', 'blogPost'] }), ],}) Copy
import {routesPlugin} from '@sanity/routes'export default defineConfig({ plugins: [ routesPlugin({ types: ['article', 'blogPost'] }), ],})
Sanity plugin that registers the route configuration schema types.
Usage in sanity.config.ts: