forked from web3templates/stablo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sanity.config.ts
45 lines (41 loc) · 1.18 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
41
42
43
44
45
import { defineConfig } from "sanity";
import { deskTool } from "sanity/desk";
import { visionTool } from "@sanity/vision";
import { schemaTypes } from "./lib/sanity/schemas";
import {
projectId,
dataset,
previewSecretId
} from "./lib/sanity/config";
import settings from "./lib/sanity/schemas/settings";
import {
pageStructure,
singletonPlugin
} from "./lib/sanity/plugins/settings";
import { unsplashImageAsset } from "sanity-plugin-asset-source-unsplash";
import { table } from "@sanity/table";
import { codeInput } from "@sanity/code-input";
export const PREVIEWABLE_DOCUMENT_TYPES: string[] = ["post"];
console.log(projectId);
export default defineConfig({
name: "default",
title: "Stablo Template",
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(),
table(),
codeInput()
],
schema: {
types: schemaTypes
}
});