-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsanity.config.ts
36 lines (34 loc) · 886 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
/**
* This configuration is used to for the Sanity Studio that’s mounted on the `/app/admin/[[...index]]/page.tsx` route
*/
import { huHULocale } from '@sanity/locale-hu-hu';
import { visionTool } from '@sanity/vision';
import { defineConfig, isDev } from 'sanity';
import { media } from 'sanity-plugin-media';
import { structureTool } from 'sanity/structure';
import { apiVersion, dataset, projectId } from './sanity/env';
import { schema } from './sanity/schema';
const devOnlyPlugins = [
visionTool({
defaultApiVersion: apiVersion,
title: 'Query Playground',
}),
];
export default defineConfig({
title: dataset,
basePath: '/admin',
projectId,
dataset,
scheduledPublishing: {
enabled: false
},
schema,
plugins: [
structureTool({
title: 'Struktúra',
}),
huHULocale(),
media(),
...(isDev ? devOnlyPlugins : []),
],
});