-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsanity.config.ts
39 lines (35 loc) · 1005 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
35
36
37
38
39
import { defineConfig } from 'sanity'
import { structure } from '@/sanity/structure'
// import { presentation } from '@/sanity/presentation'
import { dashboardTool, projectInfoWidget, projectUsersWidget } from '@sanity/dashboard'
import { vercelWidget } from 'sanity-plugin-dashboard-widget-vercel'
import { visionTool } from '@sanity/vision'
import { schemaTypes } from '@/sanity/schemaTypes'
const singletonTypes = ['site']
export default defineConfig({
name: 'default',
title: 'SvelteKit + Sanity',
basePath: '/admin',
projectId: 'rg72zbc3',
dataset: 'production',
plugins: [
structure,
// presentation,
dashboardTool({
name: 'deployment',
title: 'Deployment',
widgets: [vercelWidget()],
}),
dashboardTool({
name: 'info',
title: 'Info',
widgets: [projectInfoWidget(), projectUsersWidget()],
}),
visionTool(),
],
schema: {
types: schemaTypes,
templates: (templates) =>
templates.filter(({ schemaType }) => !singletonTypes.includes(schemaType)),
},
})