-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathastro.config.ts
47 lines (46 loc) · 967 Bytes
/
astro.config.ts
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
41
42
43
44
45
46
47
import { defineConfig, sharpImageService } from "astro/config";
import mdx from "@astrojs/mdx";
import tailwind from "@astrojs/tailwind";
import sitemap from "@astrojs/sitemap";
import prefetch from "@astrojs/prefetch";
import remarkUnwrapImages from "remark-unwrap-images";
import remarkMath from "remark-math";
import rehypeMathjax from "rehype-mathjax";
// https://astro.build/config
export default defineConfig({
site: "https://cr3.mov/",
markdown: {
remarkPlugins: [
remarkUnwrapImages,
remarkMath
],
rehypePlugins: [
rehypeMathjax
],
shikiConfig: {
theme: "slack-dark",
wrap: true,
},
},
experimental: {
assets: true,
},
image: {
// https://docs.astro.build/en/guides/assets/#using-sharp
service: sharpImageService(),
},
integrations: [
mdx({}),
tailwind({
applyBaseStyles: false,
}),
sitemap(),
prefetch(),
],
compressHTML: true,
vite: {
optimizeDeps: {
exclude: ["@resvg/resvg-js"],
},
},
});