-
-
Notifications
You must be signed in to change notification settings - Fork 40
/
astro.config.mjs
38 lines (36 loc) · 908 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
import { defineConfig } from "astro/config";
import mdx from "@astrojs/mdx";
import sitemap from "@astrojs/sitemap";
import tailwind from "@astrojs/tailwind";
import NetlifyCMS from "astro-netlify-cms";
import dcapConfig from "./decap.config.mjs";
import astropodConfig from "./.astropod/astropod.config.json";
import robotsTxt from "astro-robots-txt";
// https://astro.build/config
import image from "@astrojs/image";
// https://astro.build/config
export default defineConfig({
site: astropodConfig.site,
integrations: [
robotsTxt({
policy: [
{
userAgent: "*",
allow: "/",
disallow: "/admin",
},
],
}),
mdx(),
sitemap(),
tailwind(),
image({
serviceEntryPoint: "@astrojs/image/sharp",
cacheDir: "./.cache/image",
logLevel: "debug",
}),
NetlifyCMS({
config: dcapConfig(),
}),
],
});