-
Notifications
You must be signed in to change notification settings - Fork 0
/
astro.config.mjs
32 lines (31 loc) · 1.07 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
import { defineConfig } from "astro/config"
import tailwind from "@astrojs/tailwind"
import icon from "astro-icon"
import mdx from "@astrojs/mdx"
import rehypeAutolinkHeadings from "rehype-autolink-headings"
import { autoLinkHeadingOptions } from "./config/rehype-autolink-headings"
import rehypeSlug from "rehype-slug"
import { prettyCodePlugins } from "./config/pretty-code"
import { isAnalyticsEnabled } from "./config/analytics"
import vercel from "@astrojs/vercel"
import sitemap from "@astrojs/sitemap"
import { fixAstroVercelSitemap } from "./fix-astro-vercel-sitemap"
// https://astro.build/config
export default defineConfig({
site: "https://cosimomatteini.com",
markdown: {
syntaxHighlight: false,
rehypePlugins: [
rehypeSlug,
[rehypeAutolinkHeadings, autoLinkHeadingOptions],
prettyCodePlugins,
],
},
integrations: [tailwind(), icon(), mdx(), sitemap(), fixAstroVercelSitemap()],
output: "static",
adapter: vercel({
webAnalytics: {
enabled: isAnalyticsEnabled,
},
}),
})