-
Notifications
You must be signed in to change notification settings - Fork 0
/
astro.config.ts
42 lines (39 loc) · 920 Bytes
/
astro.config.ts
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
/*
* @Author: zhangyang
* @Date: 2022-09-04 09:46:18
* @LastEditTime: 2023-01-30 15:25:31
* @Description:
*/
import { defineConfig } from 'astro/config';
import mdx from '@astrojs/mdx';
import sitemap from '@astrojs/sitemap';
import vue from '@astrojs/vue';
import unocss from 'unocss/astro';
import { remarkLayout, remarkReadTime } from './md-plugins';
// https://astro.build/config
export default defineConfig({
site: 'https://young-blog-astro.netlify.app/',
integrations: [
mdx(),
sitemap({
customPages: [
'https://young-blog-astro.netlify.app',
'https://young-blog-astro.netlify.app/about',
'https://young-blog-astro.netlify.app/blogs',
],
}),
vue({
jsx: true,
}),
unocss(),
],
markdown: {
syntaxHighlight: 'prism',
remarkPlugins: [remarkLayout, remarkReadTime],
},
vite: {
ssr: {
format: 'cjs',
},
},
});