-
Notifications
You must be signed in to change notification settings - Fork 1
/
sanity.config.ts
33 lines (29 loc) · 1.02 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
import { defineConfig } from "sanity";
import { deskTool } from "sanity/desk";
import { visionTool } from "@sanity/vision";
import { unsplashImageAsset } from "sanity-plugin-asset-source-unsplash";
import { schemaTypes } from "./sanity/schemas";
import { projectId, dataset, previewSecretId } from "./sanity/config";
import settings from "./sanity/schemas/settings";
import { pageStructure, singletonPlugin } from "./sanity/plugins/settings";
export const PREVIEWABLE_DOCUMENT_TYPES: string[] = ["post"];
export default defineConfig({
name: "default",
title: "Jamstack Starter",
basePath: "/studio",
projectId: projectId,
dataset: dataset,
plugins: [
deskTool({
structure: pageStructure([settings]),
// `defaultDocumentNode` is responsible for adding a “Preview” tab to the document pane
// defaultDocumentNode: previewDocumentNode({ apiVersion, previewSecretId }),
}),
singletonPlugin(["settings"]),
visionTool(),
unsplashImageAsset(),
],
schema: {
types: schemaTypes,
},
});