-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsanity.config.ts
36 lines (34 loc) · 1.1 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
import { visionTool } from "@sanity/vision"
import { theme } from "https://themer.sanity.build/api/hues?default=888888&primary=0a84ff&transparent=888888&positive=30d158;400&caution=ffd60a;300&critical=ff453a&lightest=ededed&darkest=000000"
import { defineConfig } from "sanity"
import { presentationTool } from "sanity/presentation"
import { structureTool } from "sanity/structure"
import { Icon } from "./components/common/icon"
import { adminRoutes, apiRoutes } from "./config/routes"
import { siteConfig } from "./config/site"
import { apiVersion, dataset, projectId } from "./sanity/env"
import { locate } from "./sanity/presentation/locate"
import { schema } from "./sanity/schema"
export default defineConfig({
basePath: adminRoutes.studio,
name: "studio",
title: `${siteConfig.name}`,
subtitle: "Content Studio",
icon: Icon,
theme,
projectId,
dataset,
schema,
plugins: [
structureTool(),
visionTool({ defaultApiVersion: apiVersion }),
presentationTool({
locate,
previewUrl: {
draftMode: {
enable: apiRoutes.draft.enable,
},
},
}),
],
})