-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsanity.config.ts
28 lines (26 loc) · 1.03 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
import { visionTool } from "@sanity/vision";
import { defineConfig } from "sanity";
import { deskTool } from "sanity/desk";
import { env } from "./env";
import { pageStructure, singletonPlugin } from "./plugins/settings";
import aboutType from "./schemas/about";
import homeType from "./schemas/home";
import partnerType from "./schemas/partner";
import settingsType from "./schemas/settings";
import podcastType from "./schemas/podcast";
import servicesType from "./schemas/services";
const schemaTypes = [settingsType, partnerType, homeType, aboutType, podcastType, servicesType];
export default defineConfig({
basePath: "/studio",
projectId: env.NEXT_PUBLIC_SANITY_PROJECT_ID,
title: "Studio",
dataset: env.NEXT_PUBLIC_SANITY_DATASET,
schema: { types: schemaTypes },
plugins: [
deskTool({
structure: pageStructure([settingsType, homeType, aboutType, podcastType, servicesType]),
}),
visionTool({}),
singletonPlugin([settingsType.name, homeType.name, aboutType.name, podcastType.name, servicesType.name]),
],
});