-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsanity.config.ts
42 lines (37 loc) · 951 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
40
41
42
import {defineConfig} from 'sanity'
import {deskTool} from 'sanity/desk'
import {visionTool} from '@sanity/vision'
import {schemaTypes} from './schemas'
import {dashboardTool} from '@sanity/dashboard'
import {netlifyWidget} from 'sanity-plugin-dashboard-widget-netlify'
import { hookId, apiId } from './env'
export default defineConfig({
name: 'default',
title: 'Code for Chicago CMS',
projectId: 'x2mv54jv',
dataset: 'production',
plugins: [
deskTool(),
visionTool(),
dashboardTool({
widgets: [
netlifyWidget({
title: 'My Netlify deploys',
sites: [
{
title: 'Code312',
apiId: apiId || "none",
buildHookId: hookId || "none",
name: 'code-312',
url: 'https://code312.org/',
branch: 'main',
},
],
}),
],
}),
],
schema: {
types: schemaTypes,
},
})