-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsanity.config.ts
40 lines (36 loc) · 1.12 KB
/
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
import { defineConfig } from "sanity";
import { schemaTypes } from './schemas'
import { structureTool } from "sanity/structure";
import { uniformPlugin } from '@uniformdev/sanity-plugin-uniform'
export default defineConfig({
projectId: process.env.SANITY_STUDIO_PROJECT_ID!,
dataset: process.env.SANITY_STUDIO_DATASET!,
plugins: [
structureTool(),
uniformPlugin({
apiHost: 'https://uniform.app',
apiKey: process.env.SANITY_STUDIO_UNIFORM_API_KEY!,
projectId: process.env.SANITY_STUDIO_UNIFORM_PROJECT_ID!,
}),
],
schema: {
types: schemaTypes,
},
});
// export default createConfig({
// name: 'default',
// title: 'UniformConf',
// projectId: import.meta.env.SANITY_STUDIO_PROJECT_ID,
// dataset: import.meta.env.SANITY_STUDIO_DATASET,
// plugins: [
// uniformPlugin({
// apiHost: import.meta.env.SANITY_STUDIO_UNIFORM_HOST || 'https://uniform.app',
// apiKey: import.meta.env.SANITY_STUDIO_UNIFORM_API_KEY!,
// projectId: import.meta.env.SANITY_STUDIO_UNIFORM_PROJECT_ID!,
// }),
// deskTool(),
// ],
// schema: {
// types: schemaTypes,
// },
// })