-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
astro.config.mjs
50 lines (46 loc) · 1.36 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
import { defineConfig } from 'astro/config';
import sitemap from '@astrojs/sitemap';
import { remarkReadingTime } from './remark-reading-time.mjs';
import remarkCallout from "@r4ai/remark-callout";
import yaml from "@rollup/plugin-yaml";
import rehypePostImageWrapper from "./src/hooks/rehypePostImageWrapper.ts";
import rehypeSlug from 'rehype-slug'
// https://astro.build/config
export default defineConfig({
site: 'https://utf9k.net',
server: {
port: 1313,
},
image: {
domains: [
"covers.openlibrary.org",
"s4.anilist.co",
"howlongtobeat.com",
"cdn.utf9k.net"
]
},
integrations: [sitemap()],
vite: {
plugins: [yaml()]
},
markdown: {
remarkPlugins: [remarkReadingTime, remarkCallout],
remarkRehype: {
footnoteLabelProperties: {
className: ['sr-only', 'littlefoot--print']
}
},
rehypePlugins: [
rehypeSlug,
rehypePostImageWrapper
]
},
redirects: {
'/index.xml': '/rss.xml',
'/blog/rss.xml': '/rss.xml',
'/blog/when-automation-goes-horribly-right': '/blog/automation-right',
'/notes': '/questions',
'/notes/oil-futures': '/questions/finance-oil-futures-negative',
'/notes/[...slug]': '/questions/[...slug]'
}
});