Creates a Sanity Function handler that keeps route map shards in sync when routable documents change.
The route config channel (e.g., 'web')
A documentEventHandler for use in Sanity Functions
// studio/functions/route-sync/index.tsimport { createRouteSyncHandler } from '@sanity/routes'export const handler = createRouteSyncHandler('web') Copy
// studio/functions/route-sync/index.tsimport { createRouteSyncHandler } from '@sanity/routes'export const handler = createRouteSyncHandler('web')
Creates a Sanity Function handler that keeps route map shards in sync when routable documents change.