-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathastro.config.mjs
More file actions
45 lines (38 loc) · 999 Bytes
/
astro.config.mjs
File metadata and controls
45 lines (38 loc) · 999 Bytes
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
// @ts-check
import { defineConfig, passthroughImageService } from 'astro/config';
import remarkMath from 'remark-math';
import rehypeKatex from 'rehype-katex';
import rehypeExternalLinks from 'rehype-external-links';
import svelte from '@astrojs/svelte';
import mdx from '@astrojs/mdx';
import react from '@astrojs/react';
import sitemap from '@astrojs/sitemap';
import vue from '@astrojs/vue';
// https://astro.build/config
export default defineConfig({
output: 'static',
site: 'https://wave.graphics',
trailingSlash: 'always',
compressHTML: true,
build: {
format: 'directory'
},
image: {
service: passthroughImageService()
},
markdown: {
remarkPlugins: [remarkMath],
rehypePlugins: [
rehypeKatex,
[
rehypeExternalLinks,
{
target: '_blank',
rel: ['noopener', 'noreferrer'],
site: 'https://wave.graphics'
}
]
]
},
integrations: [svelte(), mdx(), react(), sitemap(), vue()]
});