generated from sanity-io/sanity-template-nextjs-clean
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsanity.config.ts
29 lines (24 loc) · 837 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
/**
* This config is used to set up Sanity Studio that's mounted on the `/pages/studio/[[...index]].tsx` route
*/
import { visionTool } from '@sanity/vision'
import { defineConfig } from 'sanity'
import { deskTool } from 'sanity/desk'
import { vercelDeployTool } from 'sanity-plugin-vercel-deploy'
// see https://www.sanity.io/docs/api-versioning for how versioning works
import { apiVersion, dataset, projectId } from './sanity/env'
import { schema } from './sanity/schema'
export default defineConfig({
basePath: '/studio',
projectId,
dataset,
//edit schemas in './sanity/schema'
schema,
plugins: [
deskTool(),
// Vision lets you query your content with GROQ in the studio
// https://www.sanity.io/docs/the-vision-plugin
visionTool({ defaultApiVersion: apiVersion }),
vercelDeployTool(),
],
})