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
|
|
|
|
2024-12-19 14:40:26 +00:00
|
|
|
import sitemap from '@astrojs/sitemap'
|
|
|
|
|
2024-12-16 14:55:58 +00:00
|
|
|
// https://astro.build/config
|
|
|
|
export default defineConfig({
|
2024-12-19 14:40:26 +00:00
|
|
|
site: 'https://solsynth.dev',
|
|
|
|
integrations: [
|
|
|
|
tailwind(),
|
|
|
|
icon(),
|
|
|
|
mdx(),
|
|
|
|
sitemap({
|
|
|
|
xslURL: '/sitemap.xsl',
|
|
|
|
i18n: { defaultLocale: 'en', locales: { en: 'en-US', 'zh-cn': 'zh-CN' } },
|
|
|
|
}),
|
|
|
|
],
|
2024-12-17 14:12:19 +00:00
|
|
|
prefetch: true,
|
2024-12-18 16:23:46 +00:00
|
|
|
i18n: {
|
|
|
|
locales: ['en', 'zh-cn'],
|
|
|
|
defaultLocale: 'en',
|
|
|
|
routing: {
|
|
|
|
fallbackType: 'rewrite',
|
2024-12-19 14:14:32 +00:00
|
|
|
prefixDefaultLocale: false,
|
2024-12-18 16:23:46 +00:00
|
|
|
},
|
|
|
|
},
|
|
|
|
})
|