-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsanity.config.ts
34 lines (33 loc) · 966 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
33
34
import { schemaTypes } from '@frontend/schemas';
import {
dashboardTool,
projectUsersWidget,
projectInfoWidget,
} from '@sanity/dashboard';
import { visionTool } from '@sanity/vision';
import { defineConfig } from 'sanity';
// import { deskTool } from 'sanity/desk';
import { structureTool } from 'sanity/structure';
import { markdownSchema } from 'sanity-plugin-markdown';
import CustomMarkdownInput from './src/components/sanity/CustomMarkdownInput';
import defaultDocumentNode from './src/components/sanity/util/defaultDocumentNode';
export default defineConfig({
name: 'default',
title: 'lhowsam.com',
projectId: 'wdj6ou2i',
dataset: 'production',
basePath: '/studio',
plugins: [
structureTool({
defaultDocumentNode,
}),
visionTool(),
markdownSchema({ input: CustomMarkdownInput }),
dashboardTool({
widgets: [projectInfoWidget(), projectUsersWidget()],
}),
],
schema: {
types: schemaTypes,
},
});