-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathsanity.config.ts
38 lines (36 loc) · 932 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
36
37
38
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: 'AD_Content_Studio',
title: 'AD Content Studio',
projectId,
dataset,
plugins: [
deskTool({
defaultDocumentNode: getDefaultDocumentNode,
}),
visionTool(),
],
schema: {
types: schemaTypes,
},
icon: Logo,
logo: Logo,
subtitle: "Login to manage the Blog",
studio: {
components: {
logo: Logo,
navbar: StudioNavbar,
},
},
theme: myTheme,
});