-
Notifications
You must be signed in to change notification settings - Fork 0
/
astro.config.mjs
40 lines (39 loc) · 944 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
39
40
import { defineConfig, sharpImageService } from "astro/config";
import { rehypeHeadingIds } from "@astrojs/markdown-remark";
import mdx from "@astrojs/mdx";
import sitemap from "@astrojs/sitemap";
import tailwind from "@astrojs/tailwind";
import rehypeAutoLinkHeadings from "rehype-autolink-headings";
import rehypeSlug from "rehype-slug";
import remarkCodeTitle from "remark-code-title";
// https://astro.build/config
export default defineConfig({
prefetch: true,
site: "https://seancassiere.com/",
image: sharpImageService(),
markdown: {
syntaxHighlight: "shiki",
shikiConfig: {
theme: "one-dark-pro",
wrap: true,
},
gfm: true,
remarkPlugins: [remarkCodeTitle],
rehypePlugins: [
rehypeSlug,
rehypeHeadingIds,
[
rehypeAutoLinkHeadings,
{
behavior: "wrap",
},
],
],
},
integrations: [mdx(), tailwind(), sitemap()],
vite: {
optimizeDeps: {
exclude: ["@resvg/resvg-js"],
},
},
});