-
Notifications
You must be signed in to change notification settings - Fork 56
/
astro.config.mjs
64 lines (63 loc) ยท 1.58 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
57
58
59
60
61
62
63
64
import react from '@astrojs/react';
import mdx from '@astrojs/mdx';
import tailwind from '@astrojs/tailwind';
import dotHtmlRedirects from './src/integration/dot-html-redirects';
import { defineConfig } from 'astro/config';
import remarkDirective from 'remark-directive';
import remarkGfm from 'remark-gfm';
import remarkOembed from 'remark-oembed';
import remarkMath from 'remark-math';
import rehypeKatex from 'rehype-katex';
import {
imageDirective,
gistDirective,
socialDirective,
} from './src/remark/directives';
import remarkOnlyStrong from './src/remark/only-strong';
import svgr from 'vite-plugin-svgr';
// https://astro.build/config
export default defineConfig({
site: 'https://unitary.fund',
redirects: {
'/faq': '/faqs',
'/faq.html': '/faqs',
'/research': '/research/publications',
'/research.html': '/research/publications',
'/mitiq': '/research/mitiq',
'/mitiq.html': '/research/mitiq',
'/talks': '/community/events',
'/talks.html': '/community/events',
'/meetup': '/community/events',
'/meetup.html': '/community/events',
},
experimental: {
redirects: true,
},
integrations: [
tailwind({ config: { applyBaseStyles: false } }),
mdx(),
react(),
dotHtmlRedirects(),
],
markdown: {
remarkPlugins: [
remarkOnlyStrong,
remarkGfm,
[
remarkOembed,
{
syncWidget: true,
},
],
remarkDirective,
remarkMath,
imageDirective,
gistDirective,
socialDirective,
],
rehypePlugins: [rehypeKatex],
},
vite: {
plugins: [svgr()],
},
});