-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathastro.config.mjs
53 lines (45 loc) · 1.17 KB
/
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
import { defineConfig } from 'astro/config';
import sitemap from "@astrojs/sitemap";
import mdx from "@astrojs/mdx";
// import lit from "@astrojs/lit";
import tailwind from "@astrojs/tailwind";
import fs from "node:fs"
// remark math and rehype katex
import remarkMath from 'remark-math';
import rehypeKatex from 'rehype-katex';
// https://astro.build/config
export default defineConfig({
site: 'https://sparxastronomy.netlify.app/',
// Your public domain, e.g.: https://my-site.dev/. Used to generate sitemaps and canonical URLs.
sitemap: true,
// Generate sitemap (set to "false" to disable)
markdown: {
// Can be 'shiki' (default), 'prism' or false to disable highlighting
// syntaxHighlight: 'prism',
shikiConfig: {
theme: JSON.parse(fs.readFileSync("./houston.theme.json", { encoding: "utf-8" })),
},
},
image:{
domains: ["ik.imagekit.io"],
},
integrations: [
sitemap(),
tailwind({
config: {
applyBaseStyles: false,
},
}),
mdx({
remarkPlugins: [remarkMath],
rehypePlugins: [rehypeKatex,]
})
],
vite: {
ssr: {
external: ["svgo"]
}
},
output: "static",
// adapter: netlify(),
});