-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathastro.config.mjs
34 lines (33 loc) · 891 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
import { defineConfig } from "astro/config";
import { astroImageTools } from "astro-imagetools";
import compress from "astro-compress";
import robotsTxt from "astro-robots-txt";
import critters from "astro-critters";
import mdx from "@astrojs/mdx";
import sitemap from "@astrojs/sitemap";
import tailwind from "@astrojs/tailwind";
import prefetch from "@astrojs/prefetch";
import { VitePWA } from "vite-plugin-pwa";
import { WEBSITE_URL } from "./src/utils/constants.mjs";
import { astroCompressConfig } from "./astroCompress.config.mjs";
export default defineConfig({
experimental: {
integrations: true,
},
integrations: [
tailwind(),
// mdx(),
prefetch(),
astroImageTools,
compress({
img: astroCompressConfig,
}),
critters({ fonts: true }),
sitemap(),
robotsTxt(),
],
site: WEBSITE_URL,
vite: {
plugins: [VitePWA()],
},
});