Const
In router segments (/app/studio/[[...index]]/page.tsx):
/app/studio/[[...index]]/page.tsx
// If you don't want to change any defaults you can just re-export the metadata directly:export {metadata} from 'next-sanity/studio'// To customize the metadata, spread it on the export:import {metadata as studioMetadata} from 'next-sanity/studio'import type { Metadata } from 'next'export const metadata: Metadata = { ...studioMetadata, // Set another title title: 'My Studio',}) Copy
// If you don't want to change any defaults you can just re-export the metadata directly:export {metadata} from 'next-sanity/studio'// To customize the metadata, spread it on the export:import {metadata as studioMetadata} from 'next-sanity/studio'import type { Metadata } from 'next'export const metadata: Metadata = { ...studioMetadata, // Set another title title: 'My Studio',})
In router segments (
/app/studio/[[...index]]/page.tsx):