Capital/astro.config.mjs

23 lines
446 B
JavaScript
Raw Normal View History

2024-12-16 14:55:58 +00:00
// @ts-check
2024-12-17 14:12:19 +00:00
import { defineConfig } from 'astro/config'
2024-12-16 14:55:58 +00:00
2024-12-17 14:12:19 +00:00
import tailwind from '@astrojs/tailwind'
2024-12-16 14:55:58 +00:00
2024-12-17 14:12:19 +00:00
import icon from 'astro-icon'
import mdx from '@astrojs/mdx'
2024-12-16 14:55:58 +00:00
// https://astro.build/config
export default defineConfig({
2024-12-17 14:12:19 +00:00
integrations: [tailwind(), icon(), mdx()],
prefetch: true,
i18n: {
locales: ['en', 'zh-cn'],
defaultLocale: 'en',
routing: {
fallbackType: 'rewrite',
2024-12-19 14:14:32 +00:00
prefixDefaultLocale: false,
},
},
})