-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathastro.config.mjs
33 lines (32 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
// @ts-nocheck
import { defineConfig } from "astro/config";
import tailwind from "@astrojs/tailwind";
import react from "@astrojs/react";
import mdx from "@astrojs/mdx";
import sitemap from "@astrojs/sitemap";
import vercel from "@astrojs/vercel";
import remarkToc from "remark-toc";
import rehypeSlug from "rehype-slug";
import rehypeAutolinkHeadings from "rehype-autolink-headings";
import { remarkReadingTime } from "./remark-reading-time.mjs";
// https://astro.build/config
export default defineConfig({
site: "https://www.ethyoung.me",
markdown: {
remarkPlugins: [
[remarkToc, { heading: "toc", maxDepth: 3 }],
remarkReadingTime,
],
rehypePlugins: [
rehypeSlug,
[rehypeAutolinkHeadings, { behavior: "append" }],
],
},
integrations: [react(), tailwind(), mdx(), sitemap()],
output: "static",
adapter: vercel({
webAnalytics: {
enabled: true,
},
}),
});