-
Notifications
You must be signed in to change notification settings - Fork 1
/
sanity.config.ts
41 lines (36 loc) · 943 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
import {defineConfig} from 'sanity'
import {deskTool} from 'sanity/desk'
import {schemaTypes} from './sanity/schemas'
import {structure} from './sanity/structure'
import {visionTool} from '@sanity/vision'
import {media} from 'sanity-plugin-media'
import {withDocumentI18nPlugin} from '@sanity/document-internationalization'
import {i18n} from 'sanity/lib/i18n'
import {projectDetails} from 'sanity/projectDetails'
const details = projectDetails()
export const config = defineConfig({
name: 'default',
title: 'Hagatun',
...details,
basePath: '/studio',
plugins: withDocumentI18nPlugin(
[
deskTool({
structure,
}),
visionTool({
defaultApiVersion: details.apiVersion,
defaultDataset: details.dataset,
}),
media(),
],
{
base: i18n.base,
languages: i18n.languages,
fieldNames: i18n.fieldNames,
}
),
schema: {
types: schemaTypes,
},
})