-
Notifications
You must be signed in to change notification settings - Fork 0
/
sanity.config.js
39 lines (38 loc) · 1.07 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
// sanity.config.js
import { defineConfig } from "sanity";
import { structureTool } from "sanity/structure";
import schemas from "./schemas/schema";
import { media } from "sanity-plugin-media";
import { orderableDocumentListDeskItem } from "@sanity/orderable-document-list";
export default defineConfig({
name: "uiogaming_dot_no-backend",
title: "uiogaming.no backend",
projectId: "mmqlu667",
dataset: "production",
plugins: [
structureTool({
structure: (S, context) => {
console.log(S.documentTypeListItems());
return S.list()
.title("Innholdstyper")
.items([
orderableDocumentListDeskItem({
type: "author",
title: "Rekkefølge på styemedlemmer",
filter: "boardMember == true",
createIntent: false,
S,
context,
}),
...S.documentTypeListItems().filter(
(i) => !["media.tag"].includes(i.getId()),
),
]);
},
}),
media(),
],
schema: {
types: schemas,
},
});