-
Notifications
You must be signed in to change notification settings - Fork 1
/
astro.config.mts
39 lines (33 loc) · 1.06 KB
/
astro.config.mts
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
import mdx from "@astrojs/mdx";
import sitemap from "@astrojs/sitemap";
import tailwind from "@astrojs/tailwind";
import { defineConfig } from "astro/config";
import icon from "astro-icon";
// https://astro.build/config
import compress from "astro-compress";
// https://astro.build/config
import robotsTxt from "astro-robots-txt";
// https://astro.build/config
import partytown from "@astrojs/partytown";
import rehypeExternalLinks from "rehype-external-links";
import rehypeSlug from "rehype-slug";
import rehypeToc from "rehype-toc";
// https://astro.build/config
// https://astro.build/config
import critters from "astro-critters";
import { SITE_URL } from "./src/consts";
// https://astro.build/config
export default defineConfig({
markdown: {
rehypePlugins: [(rehypeSlug as any), (rehypeExternalLinks as any), [(rehypeToc as any), {
headings: ["h1", "h2"]
}]]
},
site: SITE_URL,
prefetch: true,
integrations: [mdx(), sitemap(), tailwind(), compress(), robotsTxt(), partytown({
config: {
forward: ["dataLayer.push"]
}
}), icon()]
});