-
Notifications
You must be signed in to change notification settings - Fork 0
/
astro.config.mjs
56 lines (52 loc) · 1.54 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
44
45
46
47
48
49
50
51
52
53
54
55
56
import { defineConfig } from 'astro/config'
import { pluginLineNumbers } from '@expressive-code/plugin-line-numbers'
import alpine from '@astrojs/alpinejs'
import expressiveCode from 'astro-expressive-code'
import mdx from '@astrojs/mdx'
import partytown from '@astrojs/partytown'
import react from '@astrojs/react'
import rehypeExternalLinks from 'rehype-external-links'
import remarkBreaks from 'remark-breaks'
import sitemap from '@astrojs/sitemap'
import tailwind from '@astrojs/tailwind'
// https://docs.astro.build/ja/reference/configuration-reference/
export default defineConfig({
// https://docs.astro.build/ja/reference/configuration-reference/#site
site: 'https://xenexe.info/',
// https://docs.astro.build/ja/reference/configuration-reference/#serverhost
server: { host: true },
// https://docs.astro.build/ja/guides/integrations-guide/
integrations: [
alpine({ entrypoint: '/src/entrypoint' }),
expressiveCode({
plugins: [pluginLineNumbers()],
}),
mdx(),
partytown({
config: {
forward: ['dataLayer.push'],
},
}),
react(),
sitemap(),
tailwind(),
],
// https://docs.astro.build/ja/guides/markdown-content/
markdown: {
remarkRehype: {
footnoteLabel: ' ',
footnoteLabelProperties: { className: [''] },
footnoteLabelTagName: 'hr',
},
rehypePlugins: [
[
rehypeExternalLinks,
{
rel: ['nofollow', 'noopener', 'noreferrer'],
target: '_blank',
},
],
],
remarkPlugins: [remarkBreaks],
},
})