-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathastro.config.mjs
38 lines (38 loc) · 925 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
// @ts-check
import mdx from "@astrojs/mdx";
import react from "@astrojs/react";
import sitemap from "@astrojs/sitemap";
import tailwind from "@astrojs/tailwind";
import { defineConfig } from "astro/config";
import rehypeKatex from "rehype-katex";
import remarkMath from "remark-math";
import icon from "astro-icon";
import { SITE_URL,LANGUAGES } from "./src/config";
// https://astro.build/config
export default defineConfig({
site: SITE_URL,
trailingSlash: "never",
prefetch: {
prefetchAll: true,
defaultStrategy: "viewport",
},
i18n: {
locales: LANGUAGES,
defaultLocale: "en",
},
integrations: [
mdx({
syntaxHighlight: "shiki",
shikiConfig: {
theme: "dark-plus",
},
remarkPlugins: [remarkMath],
rehypePlugins: [rehypeKatex],
}),
sitemap(),
tailwind(),
react({ include: ["**/react/**/*"] }),
icon({}),
],
output: "static",
});