150600
This commit is contained in:
43
astro.config.mjs
Normal file
43
astro.config.mjs
Normal file
@@ -0,0 +1,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,
|
||||
// },
|
||||
})
|
||||
Reference in New Issue
Block a user