-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathastro.config.js
39 lines (34 loc) · 1.01 KB
/
astro.config.js
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
import { defineConfig } from "astro/config";
import sitemap from "@astrojs/sitemap";
import prefetch from "@astrojs/prefetch";
import { rehypePicPerf } from "@picperf/rehype";
import { jamComments } from "@jam-comments/astro/config";
import { configDotenv } from "dotenv";
import pagefind from "astro-pagefind";
import tailwindcss from "@tailwindcss/vite";
configDotenv();
export default defineConfig({
site: "https://macarthur.me",
trailingSlash: "never",
markdown: { rehypePlugins: [rehypePicPerf] },
integrations: [
jamComments({
domain: process.env.JAM_COMMENTS_DOMAIN,
apiKey: process.env.JAM_COMMENTS_API_KEY,
copy: { commentPlaceholder: "Markdown is supported!" },
}),
sitemap({
serialize(item) {
item.changefreq = "daily";
item.lastmod = new Date();
item.priority = 0.9;
return item;
},
}),
prefetch({ selector: "a[href^='/'], a[href^='https://macarthur.me']" }),
pagefind(),
],
vite: {
plugins: [tailwindcss()],
},
});