-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathastro.config.mjs
More file actions
44 lines (43 loc) · 1.07 KB
/
Copy pathastro.config.mjs
File metadata and controls
44 lines (43 loc) · 1.07 KB
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
import react from "@astrojs/react";
import sitemap from "@astrojs/sitemap";
import tailwind from "@astrojs/tailwind";
import { defineConfig } from "astro/config";
export default defineConfig({
site: 'https://minibili.zhaohe.org',
prefetch: true,
integrations: [
tailwind(),
react(),
sitemap({
changefreq: 'weekly',
priority: 0.7,
serialize(item) {
if (item.url === 'https://minibili.zhaohe.org/') {
return { ...item, priority: 1.0, changefreq: 'daily' };
}
if (item.url.includes('/changelog')) {
return { ...item, priority: 0.8 };
}
if (item.url.includes('/roadmap')) {
return { ...item, priority: 0.6 };
}
return { ...item, priority: 0.5 };
},
}),
],
vite: {
build: {
rollupOptions: {
output: {
manualChunks: {
'react-icons': ['react-icons/ri', 'react-icons/fa', 'react-icons/tb', 'react-icons/fi'],
}
}
}
}
},
build: {
inlineStylesheets: 'auto',
},
compressHTML: true,
});