-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathastro.config.mjs
43 lines (41 loc) · 1.26 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
33
34
35
36
37
38
39
40
41
42
43
import { defineConfig } from 'astro/config';
import tailwind from '@astrojs/tailwind';
import vercel from '@astrojs/vercel/serverless';
import mdx from '@astrojs/mdx';
import partytown from '@astrojs/partytown';
import sitemap from '@astrojs/sitemap';
import remarkGfm from 'remark-gfm';
import rehypeAutolinkHeadings from 'rehype-autolink-headings';
import rehypePrettyCode from 'rehype-pretty-code';
import rehypeSlug from 'rehype-slug';
import robotsTxt from 'astro-robots-txt';
const rehypePrettyCodeOptions = {
theme: 'poimandres'
};
const rehypeAutolinkHeadingsOptions = {
properties: {
className: ['anchor']
}
};
// https://astro.build/config
export default defineConfig({
site: 'https://sergiobarria.dev',
integrations: [tailwind(), mdx(), partytown(), sitemap(), robotsTxt()],
markdown: {
syntaxHighlight: false,
remarkPlugins: [remarkGfm],
rehypePlugins: [
rehypeSlug,
[rehypePrettyCode, rehypePrettyCodeOptions],
[rehypeAutolinkHeadings, rehypeAutolinkHeadingsOptions]
]
},
output: 'hybrid',
adapter: vercel({
speedInsights: { enabled: true }
}),
devToolbar: { enabled: false },
experimental: {
contentCollectionCache: true
}
});