-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathastro.config.mjs
120 lines (119 loc) · 2.49 KB
/
astro.config.mjs
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
import { defineConfig } from "astro/config";
import tailwind from "@astrojs/tailwind";
import mdx from "@astrojs/mdx";
import sitemap from "@astrojs/sitemap";
import NetlifyCMS from "astro-netlify-cms";
import astroI18next from "astro-i18next";
import alpinejs from "@astrojs/alpinejs";
// https://astro.build/config
export default defineConfig({
site: "https://epicstudio.zank.studio",
vite: {
define: {
__DATE__: `'${new Date().toISOString()}'`,
},
},
integrations: [
tailwind(),
mdx(),
sitemap(),
NetlifyCMS({
config: {
backend: {
name: "github",
repo: "zankhq/epicstudio",
branch: "main",
base_url: "https://epicstudio.zank.studio",
auth_endpoint: "/api/auth",
},
media_folder: "public/images",
public_folder: "/images",
collections: [
// Content collections
{
name: "posts",
label: "Portfolio",
folder: "src/content/portfolio",
create: true,
delete: true,
fields: [
{
name: "title",
widget: "string",
label: "Post Title",
i18n: true,
},
{
label: "Draft",
name: "draft",
widget: "boolean",
i18n: "duplicate",
},
{
label: "Author",
name: "author",
widget: "string",
i18n: "duplicate",
},
{
label: "Tags",
name: "tags",
widget: "list",
i18n: true,
},
{
label: "Image",
name: "image",
widget: "object",
i18n: true,
fields: [
{
label: "Source",
name: "src",
widget: "image",
i18n: "duplicate",
},
{
label: "Alt Text",
name: "alt",
widget: "string",
i18n: true,
},
],
},
{
label: "Snippet",
name: "snippet",
widget: "text",
i18n: true,
},
{
label: "Publish Date",
name: "publishDate",
widget: "datetime",
format: "YYYY-MM-DD HH:mm",
i18n: "duplicate",
},
{
label: "Category",
name: "category",
widget: "select",
options: ["Tutorials", "News", "Reviews", "Frameworks"],
i18n: "duplicate",
},
{
name: "body",
widget: "markdown",
label: "Post Body",
i18n: true,
},
],
},
],
},
disableIdentityWidgetInjection: true,
}),
astroI18next(),
alpinejs(),
],
});