-
Notifications
You must be signed in to change notification settings - Fork 69
/
Copy pathsanity.config.ts
32 lines (30 loc) · 957 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
import { StudioLogo } from '@components/atoms/Logo';
import { codeInput } from '@sanity/code-input';
import { visionTool } from '@sanity/vision';
import { schemaTypes } from '@schemas';
import { defineConfig } from 'sanity';
import { deskTool } from 'sanity/desk';
import { vercelDeployTool } from 'sanity-plugin-vercel-deploy';
export default defineConfig({
name: 'portfolio-content-studio',
basePath: '/studio',
title: 'Portfolio Content Studio',
projectId: process.env.NEXT_PUBLIC_SANITY_PROJECT_ID!,
dataset: process.env.NEXT_PUBLIC_SANITY_DATASET!,
decorators: [
{ title: 'Strong', value: 'strong' },
{ title: 'Emphasis', value: 'em' },
{ title: 'Code', value: 'code' },
{ title: 'Underline', value: 'underline' },
{ title: 'Strike', value: 'strike-through' },
],
plugins: [deskTool(), visionTool(), codeInput(), vercelDeployTool()],
schema: {
types: schemaTypes,
},
studio: {
components: {
logo: StudioLogo,
},
},
});