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