-
Notifications
You must be signed in to change notification settings - Fork 0
/
astro.config.mjs
34 lines (33 loc) · 1.04 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
import { defineConfig } from 'astro/config';
import { remarkReadingTime } from './src/utils/remark-reading-time.mjs';
import tailwind from '@astrojs/tailwind';
import robotsTxt from 'astro-robots-txt';
import sitemap from '@astrojs/sitemap';
import mdx from '@astrojs/mdx';
import inspectUrls from '@jsdevtools/rehype-url-inspector';
import react from '@astrojs/react';
import compress from 'astro-compress';
import partytown from '@astrojs/partytown';
import prefetch from '@astrojs/prefetch';
// https://astro.build/config
export default defineConfig({
site: 'https://www.peoray.dev',
markdown: {
remarkPlugins: [remarkReadingTime],
rehypePlugins: [[inspectUrls, {
selectors: ['a[href]'],
inspectEach(url) {
url.node.properties.target = '_blank';
}
}]]
},
integrations: [tailwind(), robotsTxt(), sitemap(), mdx(), react(), partytown({
// Adds dataLayer.push as a forwarding-event.
config: {
forward: ['dataLayer.push']
}
}), prefetch(), compress()],
legacy: {
astroFlavoredMarkdown: true
}
});