-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathastro.config.mjs
More file actions
29 lines (28 loc) · 769 Bytes
/
astro.config.mjs
File metadata and controls
29 lines (28 loc) · 769 Bytes
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
// astro.config.mjs
import mdx from "@astrojs/mdx";
import playformInline from "@playform/inline";
import tailwindcss from "@tailwindcss/vite";
import compress from "astro-compress";
import compressor from "astro-compressor";
import { defineConfig } from "astro/config";
import { FontaineTransform } from "fontaine";
export default defineConfig({
site: "https://www.arvindsuresh.in",
integrations: [
mdx(),
compress(),
playformInline(),
compressor({ gzip: true, brotli: true }),
],
vite: {
plugins: [
tailwindcss(),
FontaineTransform.vite({
fallbacks: ["Arial", "Roboto", "Times New Roman"],
resolvePath: (id) => {
return new URL(`./public${id}`, import.meta.url);
},
}),
],
},
});