-
Notifications
You must be signed in to change notification settings - Fork 0
/
astro.config.mjs
41 lines (40 loc) · 1012 Bytes
/
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
import { defineConfig } from "astro/config";
import NetlifyCMS from "astro-netlify-cms";
import cloudflare from "@astrojs/cloudflare";
import mdx from "@astrojs/mdx";
// https://astro.build/config
export default defineConfig({
// output: "server",
// adapter: cloudflare(),
integrations: [
mdx(),
NetlifyCMS({
config: {
backend: {
name: "github",
branch: "main",
},
collections: [
{
name: "hero",
label: "hero section",
folder: "src/content/home/hero",
create: true,
delete: false,
extension: "mdx",
format: "frontmatter",
fields: [
{ name: "title", widget: "string", label: "File Title" },
{
widget: "string",
name: "firstLine",
label: "First Line",
required: true,
},
],
},
],
},
}),
],
});