41 lines
840 B
JavaScript
41 lines
840 B
JavaScript
import { defineConfig } from 'astro/config';
|
|
import react from '@astrojs/react';
|
|
import mdx from '@astrojs/mdx';
|
|
import tailwindcss from '@tailwindcss/vite';
|
|
|
|
export default defineConfig({
|
|
site: 'https://reims-go.pages.dev',
|
|
output: 'static',
|
|
trailingSlash: 'ignore',
|
|
prefetch: {
|
|
prefetchAll: true,
|
|
defaultStrategy: 'hover',
|
|
},
|
|
integrations: [
|
|
react(),
|
|
mdx(),
|
|
],
|
|
i18n: {
|
|
defaultLocale: 'zh-cn',
|
|
locales: ['zh-cn', 'en'],
|
|
routing: {
|
|
prefixDefaultLocale: false,
|
|
},
|
|
},
|
|
markdown: {
|
|
shikiConfig: {
|
|
themes: {
|
|
light: 'github-light',
|
|
dark: 'github-dark',
|
|
},
|
|
wrap: true,
|
|
},
|
|
},
|
|
vite: {
|
|
plugins: [tailwindcss()],
|
|
optimizeDeps: {
|
|
include: ['gsap', 'gsap/ScrollTrigger', '@gsap/react', 'motion/react', 'lucide-react'],
|
|
},
|
|
},
|
|
});
|