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'
|
|
|
|
|
2024-12-18 16:23:46 +00:00
|
|
|
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,
|
2024-12-18 16:23:46 +00:00
|
|
|
i18n: {
|
|
|
|
locales: ['en', 'zh-cn'],
|
|
|
|
defaultLocale: 'en',
|
|
|
|
routing: {
|
|
|
|
fallbackType: 'rewrite',
|
|
|
|
prefixDefaultLocale: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
})
|