-
Notifications
You must be signed in to change notification settings - Fork 0
/
astro.config.mjs
42 lines (37 loc) · 1018 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
41
42
import { defineConfig } from "astro/config";
import mdx from "@astrojs/mdx";
import prefetch from "@astrojs/prefetch";
import sitemap from "@astrojs/sitemap";
import tailwind from "@astrojs/tailwind";
import compress from "astro-compress";
import robotsTxt from "astro-robots-txt";
import { remarkReadingTime } from "./plugins/remark-reading-time.mjs";
import { autolinkConfig } from "./plugins/rehype-autolink-config";
import rehypeSlug from "rehype-slug";
import rehypeAutolinkHeadings from "rehype-autolink-headings";
// https://astro.build/config
export default defineConfig({
site: "https://www.jcapucho.com",
compressHTML: true,
markdown: {
remarkPlugins: [remarkReadingTime],
rehypePlugins: [rehypeSlug, [rehypeAutolinkHeadings, autolinkConfig]],
},
vite: {
build: {
sourcemap: true,
},
},
integrations: [
tailwind({
config: {
applyBaseStyles: false,
},
}),
mdx(),
prefetch(),
sitemap(),
robotsTxt(),
compress(),
],
});