-
Notifications
You must be signed in to change notification settings - Fork 36
/
Copy pathsanity.config.ts
32 lines (30 loc) · 871 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
31
32
import {visionTool} from '@sanity/vision'
import {defineConfig} from 'sanity'
import {presentationTool} from 'sanity/presentation'
import {structureTool} from 'sanity/structure'
import {STUDIO_BASEPATH} from '~/sanity/constants'
import {resolve} from '~/sanity/presentation/resolve'
import {projectDetails} from '~/sanity/projectDetails'
import schema from '~/sanity/schemaTypes'
import {defaultDocumentNode, structure} from '~/sanity/structure'
export default defineConfig({
...projectDetails(),
name: 'sanity-react-router',
title: 'Sanity x React Router',
plugins: [
structureTool({structure, defaultDocumentNode}),
presentationTool({
resolve,
previewUrl: {
previewMode: {
enable: '/resource/preview',
},
},
}),
visionTool(),
],
basePath: STUDIO_BASEPATH,
schema: {
types: schema,
},
})