-
Notifications
You must be signed in to change notification settings - Fork 0
/
astro.config.ts
65 lines (62 loc) · 1.49 KB
/
astro.config.ts
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
import mdx from '@astrojs/mdx'
import react from '@astrojs/react'
import { rehypeHeadingIds } from '@astrojs/markdown-remark'
import { defineConfig } from 'astro/config'
import { presetTypography } from 'unocss'
import UnoCSS from 'unocss/astro'
import vercelStatic from '@astrojs/vercel/static'
import rehypeAutolinkHeadings from 'rehype-autolink-headings'
import rehypeExternalLinks from 'rehype-external-links'
import sentry from '@sentry/astro'
import partytown from '@astrojs/partytown'
// https://astro.build/config
export default defineConfig({
prefetch: true,
markdown: {
shikiConfig: {
theme: 'vitesse-dark',
},
rehypePlugins: [
rehypeHeadingIds,
[
rehypeAutolinkHeadings,
{
behavior: 'wrap',
properties: {
className: 'prose-heading-anchor',
},
},
],
[
rehypeExternalLinks,
{
target: '_blank',
rel: ['nofollow', 'noopener', 'noreferrer'],
},
],
],
},
integrations: [
react(),
UnoCSS({
injectReset: true,
presets: [presetTypography()],
}),
mdx(),
sentry({
enabled: process.env.NODE_ENV === 'production',
dsn: process.env.SENTRY_DSN,
sourceMapsUploadOptions: {
project: process.env.SENTRY_PROJECT,
authToken: process.env.SENTRY_AUTH_TOKEN,
},
}),
partytown(),
],
output: 'static',
adapter: vercelStatic({
webAnalytics: {
enabled: true,
},
}),
})