-
Notifications
You must be signed in to change notification settings - Fork 0
/
sanity.config.ts
35 lines (33 loc) · 921 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
import { codeInput } from "@sanity/code-input";
import { visionTool } from "@sanity/vision";
import { defineConfig } from "sanity";
import { deskTool } from "sanity/desk";
import Logo from "./components/Logo";
import StudioNavbar from "./components/StudioNavbar";
import { schemaTypes } from "./schemas";
import { getDefaultDocumentNode } from "./structure";
import { myTheme } from "./theme";
const projectId = process.env.NEXT_PUBLIC_SANITY_PROJECT_ID!;
const dataset = process.env.NEXT_PUBLIC_SANITY_DATASET!;
export default defineConfig({
basePath: "/studio",
name: "Noir_Tech_Tribe",
title: "Noir Tech Tribe Studio",
projectId,
dataset,
plugins: [
deskTool({ defaultDocumentNode: getDefaultDocumentNode }),
visionTool(),
codeInput(),
],
schema: {
types: schemaTypes,
},
studio: {
components: {
logo: Logo,
navbar: StudioNavbar,
},
},
theme: myTheme,
});