-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathastro.config.mjs
More file actions
39 lines (36 loc) · 768 Bytes
/
astro.config.mjs
File metadata and controls
39 lines (36 loc) · 768 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
import mdx from '@astrojs/mdx';
import preact from '@astrojs/preact';
import sitemap from '@astrojs/sitemap';
import { defineConfig } from 'astro/config';
import fs from 'fs';
import JSON5 from 'json5';
// https://astro.build/config
export default defineConfig({
integrations: [
mdx(),
preact(),
sitemap({
changefreq: 'monthly',
serialize(item) {
const url = new URL(item.url);
if (url.pathname === '/') {
item.changefreq = 'daily';
}
return item;
},
}),
],
site: 'https://ijsjes.dev',
markdown: {
shikiConfig: {
fontFamily: 'monospace, monospace',
theme: JSON5.parse(fs.readFileSync('./data/vscode-cobalt2-theme.json')),
wrap: false,
},
},
vite: {
ssr: {
noExternal: ['modern-css-reset'],
},
},
});