-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathkeystatic.config.tsx
41 lines (40 loc) · 1.18 KB
/
keystatic.config.tsx
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
/* eslint-disable @next/next/no-img-element */
import { ai } from "@/utils/keystatic/collections/ai";
import { designKit } from "@/utils/keystatic/collections/designKit";
import { dev } from "@/utils/keystatic/collections/dev";
import { post } from "@/utils/keystatic/collections/post";
import { profile } from "@/utils/keystatic/collections/profile";
import { starterKit } from "@/utils/keystatic/collections/starterKit";
import { uiComponent } from "@/utils/keystatic/collections/uiComponent";
import { config } from "@keystatic/core";
export default config({
ui: {
brand: {
name: "smashing.tools",
mark: () => {
return <img id="keystatic-logo" src="/logo.svg" alt="smashing.tools" />;
},
},
navigation: {
Tools: ["starterKit", "designKit", "uiComponent", "ai", "dev"],
Content: ["post"],
People: ["profile"],
},
},
storage: {
kind: process.env.NODE_ENV === "production" ? "cloud" : "local",
branchPrefix: "tool/",
},
...(process.env.NODE_ENV === "production" && {
cloud: { project: "smashing/tools" },
}),
collections: {
starterKit,
designKit,
uiComponent,
ai,
dev,
profile,
post,
},
});