Capital/astro.config.mjs
2024-12-19 00:23:46 +08:00

23 lines
445 B
JavaScript

// @ts-check
import { defineConfig } from 'astro/config'
import tailwind from '@astrojs/tailwind'
import icon from 'astro-icon'
import mdx from '@astrojs/mdx'
// https://astro.build/config
export default defineConfig({
integrations: [tailwind(), icon(), mdx()],
prefetch: true,
i18n: {
locales: ['en', 'zh-cn'],
defaultLocale: 'en',
routing: {
fallbackType: 'rewrite',
prefixDefaultLocale: true,
},
},
})