-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathsanity.config.ts
33 lines (32 loc) · 886 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
import {defineConfig} from "sanity";
import {deskTool} from "sanity/desk";
import {visionTool} from "@sanity/vision";
import {singletonPlugin} from "./studio/plugins/singletonPlugin";
import {presentationTool} from "sanity/presentation";
import {schemasTypes} from "./studio/schemas";
import {structure} from "./studio/structure";
import {locate} from "./studio/plugins/locate";
export default defineConfig({
projectId: process.env.NEXT_PUBLIC_SANITY_PROJECT_ID as string,
dataset: process.env.NEXT_PUBLIC_SANITY_DATASET as string,
name: "Studio",
basePath: "/studio",
schema: {
types: schemasTypes,
},
plugins: [
deskTool({
structure,
}),
presentationTool({
locate,
previewUrl: {
draftMode: {
enable: "/api/draft",
},
},
}),
singletonPlugin({types: ["siteSettings"]}),
visionTool(),
],
});