-
Notifications
You must be signed in to change notification settings - Fork 0
/
sanity.config.ts
30 lines (28 loc) · 777 Bytes
/
sanity.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import {defineConfig, StudioLogo} from 'sanity'
import {deskTool} from 'sanity/desk'
import {visionTool} from '@sanity/vision'
import {schemaTypes} from './schemas'
import StudioNavbar from './components/StudioNavbar'
import Logo from './components/Logo'
import { getDefaultDocumentNode } from './structure'
const projectId = process.env.NEXT_PUBLIC_SANITY_PROJECT_ID!
const dataset = process.env.NEXT_PUBLIC_SANITY_DATASET!
export default defineConfig({
basePath: "/studio",
name: 'OTTOS-NOTE_STUDIO',
title: 'Otto notes',
projectId,
dataset,
plugins: [deskTool({
defaultDocumentNode: getDefaultDocumentNode
}), visionTool()],
schema: {
types: schemaTypes,
},
studio: {
components: {
logo: Logo,
navbar: StudioNavbar
}
}
})