-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathastro.config.mjs
40 lines (37 loc) · 947 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
import { defineConfig } from "astro/config";
import react from "@astrojs/react";
import tailwind from "@astrojs/tailwind";
import mdx from "@astrojs/mdx";
import { remarkReadingTime } from "./src/lib/remark-reading-time.mjs";
import swup from "@swup/astro";
import sitemap from "@astrojs/sitemap";
import robotsTxt from "astro-robots-txt";
import compress from "vite-plugin-compression";
import remarkToc from "remark-toc";
// https://astro.build/config
export default defineConfig({
site: "https://sy3d.dev",
integrations: [
react(),
tailwind({
applyBaseStyles: false,
}),
mdx({
remarkPlugins: [
remarkReadingTime,
[remarkToc, { ordered: true }],
],
}),
swup({
theme: "slide",
}),
sitemap(),
robotsTxt(),
],
vite: {
plugins: [
compress({ ext: ".br", algorithm: "brotliCompress" }),
compress({ ext: ".gz", algorithm: "gzip" }),
],
},
});