forked from godruoyi/gblog
-
Notifications
You must be signed in to change notification settings - Fork 0
/
astro.config.mjs
43 lines (42 loc) · 1.12 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
import { defineConfig } from 'astro/config'
import mdx from '@astrojs/mdx'
import tailwind from '@astrojs/tailwind'
import react from '@astrojs/react'
import sitemap from '@astrojs/sitemap'
import partytown from '@astrojs/partytown'
import { SITE } from './src/config.ts'
import { remarkReadingTime } from './src/support/time.ts'
export default defineConfig({
site: SITE.url,
image: {},
integrations: [
mdx(),
sitemap(),
tailwind(),
react(),
partytown(),
(await import('@playform/compress')).default({
CSS: true,
HTML: true,
Image: false, // too slow when deploy to production,
JavaScript: true,
SVG: true,
Logger: 2,
}),
],
markdown: {
remarkPlugins: [remarkReadingTime],
shikiConfig: {
themes: {
light: 'material-theme-lighter',
dark: 'one-dark-pro',
},
wrap: false,
},
},
output: 'static',
// experimental: {
// clientPrerender: true,
// directRenderScript: true,
// },
})