-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsanity.config.ts
41 lines (36 loc) · 1.19 KB
/
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
import {defineConfig} from 'sanity'
import {deskTool} from 'sanity/desk'
import {visionTool} from '@sanity/vision'
import {RobotIcon} from '@sanity/icons'
import {media} from 'sanity-plugin-media'
import { unsplashImageAsset } from "sanity-plugin-asset-source-unsplash"
import { colorInput } from "@sanity/color-input"
import { vercelDeployTool } from 'sanity-plugin-vercel-deploy'
import { pageStructure, singletonPlugin } from './plugins/settings'
// schemas ==============
import { homeType as home} from "./schemas/singletons/home"
import { settingsType as settings} from "./schemas/singletons/settings"
import { schemaTypes } from './schemas'
export default defineConfig({
projectId: 'z0o6cgrz',
dataset: 'production',
basePath: '/studio',
name: 'default',
title: 'timspears.io',
icon: RobotIcon,
schema: {
types: schemaTypes,
},
plugins: [
deskTool({
structure: pageStructure([home, settings]),
}),
media(),
// Configures the global "new document" button, and document actions, to suit the Settings document singleton
singletonPlugin([home.name, settings.name]),
visionTool(),
colorInput(),
unsplashImageAsset(),
vercelDeployTool(),
],
})