-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsanity.config.ts
42 lines (36 loc) · 1013 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
39
40
41
42
import { defineConfig } from 'sanity';
import { deskTool } from 'sanity/desk';
import { visionTool } from '@sanity/vision';
import { colorInput } from '@sanity/color-input';
import { media } from 'sanity-plugin-media';
import { aiToolkit } from '@focus-reactive/sanity-ai-toolkit';
import { schemaTypes } from '@/sanity/schemas';
import config from '@/sanity/config';
import { defaultDocumentNode, deskStructure } from '@/sanity/deskStructure';
export default defineConfig({
name: 'default',
title: 'Next.js + Sanity MVP',
basePath: '/admin',
...config,
plugins: [
deskTool({
structure: deskStructure,
defaultDocumentNode,
}),
visionTool(),
media(),
colorInput(),
aiToolkit({
openAiToken: process.env.SANITY_STUDIO_OPENAI_TOKEN as string,
featuresConfig: {
translate: { enabled: true },
summary: { enabled: true },
tags: { enabled: true },
},
}),
],
schema: {
// @ts-ignore
types: schemaTypes,
},
});