/
astro.config.ts
45 lines (44 loc) · 915 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
import { defineConfig } from "astro/config"
import sitemap from "@astrojs/sitemap"
import tailwind from "@astrojs/tailwind"
import astroI18next from "astro-i18next"
import svelte from "@astrojs/svelte"
import react from "@astrojs/react"
// https://astro.build/config
export default defineConfig({
site: "https://duskmoon314.com/",
integrations: [
sitemap({
i18n: {
defaultLocale: "zh",
locales: {
zh: "zh",
en: "en",
},
},
}),
tailwind(),
astroI18next(),
svelte(),
react(),
],
vite: {
ssr: {
external: ["svgo"],
},
},
markdown: {
remarkPlugins: ["remark-gfm", "remark-smartypants", "remark-math"],
rehypePlugins: [
"rehype-mathjax",
"rehype-slug",
[
"rehype-autolink-headings",
{
behavior: "prepand",
},
],
"rehype-toc",
],
},
})