This repository has been archived by the owner on Nov 24, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
astro.config.ts
65 lines (64 loc) · 1.52 KB
/
astro.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
import partytown from "@astrojs/partytown";
import compressor from "astro-compressor";
import htmlMinifier from "astro-html-minifier";
import { astroImageTools } from "astro-imagetools";
import NetlifyCMS from "astro-netlify-cms";
import { defineConfig } from "astro/config";
// https://astro.build/config
export default defineConfig({
integrations: [
astroImageTools,
partytown({}),
htmlMinifier(),
NetlifyCMS({
config: {
backend: {
branch: "trunk",
name: "git-gateway",
},
collections: [
{
files: [
{
fields: [
{
label: "Titel",
name: "title",
widget: "string",
},
{
label: "Inhalt",
name: "body",
widget: "markdown",
},
],
file: ".cms/content/index.md",
label: "Startseite",
name: "index",
},
],
label: "Seiten",
name: "pages",
},
],
locale: "de",
media_folder: "public/uploads",
public_folder: "uploads",
publish_mode: "editorial_workflow",
},
previewStyles: [
"https://cdn.jsdelivr.net/npm/@picocss/[email protected]/css/pico.min.css", // for some reason, the local file is imported on the top-level instead of in the preview pane iframe, so let's revert to a cdn
[
"html, body { padding: 16px; } body { border: 1px dashed #7f7f7f; border-radius: 16px; }",
{ raw: true },
],
],
}),
compressor(),
],
vite: {
ssr: {
external: ["svgo"], // for the astro-icon tool
},
},
});