-
Notifications
You must be signed in to change notification settings - Fork 15
/
sanity.config.js
39 lines (35 loc) · 1.13 KB
/
sanity.config.js
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
import {visionTool} from '@sanity/vision'
import {defineConfig} from 'sanity'
import {digitalOceanFiles} from 'sanity-plugin-digital-ocean-files'
import {deskTool} from 'sanity/desk'
import {schemaTypes} from './schemas'
export default defineConfig({
name: 'default',
title: 'Test studio',
projectId: process.env.SANITY_STUDIO_PROJECT_ID,
dataset: process.env.SANITY_STUDIO_DATASET,
plugins: [
deskTool(),
visionTool(),
digitalOceanFiles({
toolTitle: 'Media Library',
// If you want to restrict file types library-wide:
// defaultAccept: {
// 'application/pdf': ['pdf'],
// 'video/*': ['mp4', 'mov', 'webm'],
// },
credentials: {
bucketKey: process.env.SANITY_STUDIO_BUCKET_KEY,
bucketRegion: process.env.SANITY_STUDIO_BUCKET_REGION,
getSignedUrlEndpoint: process.env.SANITY_STUDIO_SIGNED_URL_ENDPOINT,
deleteObjectEndpoint: process.env.SANITY_STUDIO_DELETE_OBJECT_ENDPOINT,
folder: process.env.SANITY_STUDIO_UPLOAD_FOLDER,
subdomain: null,
secretForValidating: null,
},
}),
],
schema: {
types: schemaTypes,
},
})