-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsanity.config.ts
More file actions
33 lines (29 loc) · 784 Bytes
/
Copy pathsanity.config.ts
File metadata and controls
33 lines (29 loc) · 784 Bytes
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
31
32
33
import {defineConfig} from 'sanity'
import {structureTool} from 'sanity/structure'
import {visionTool} from '@sanity/vision'
import {schemaTypes} from './sanity/schemaTypes'
import {DATASET, PROJECT_ID} from './sanity/settings'
export default defineConfig({
name: 'default',
title: 'domiemorine',
projectId: PROJECT_ID,
dataset: DATASET,
plugins: [
structureTool({
structure: (S) =>
S.list()
.title('Content')
.items([
S.listItem()
.title('Settings')
.child(S.document().schemaType('settings').documentId('settings')),
S.divider(),
S.documentTypeListItem('page').title('Pages'),
]),
}),
visionTool(),
],
schema: {
types: schemaTypes,
},
})