Capital/astro.config.mjs

40 lines
731 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
2024-12-19 14:40:26 +00:00
import sitemap from '@astrojs/sitemap'
2024-12-19 14:56:07 +00:00
import vercel from '@astrojs/vercel';
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',
2024-12-19 14:56:07 +00:00
2024-12-19 14:40:26 +00:00
integrations: [
tailwind(),
icon(),
mdx(),
sitemap({
xslURL: '/sitemap.xsl',
i18n: { defaultLocale: 'en', locales: { en: 'en-US', 'zh-cn': 'zh-CN' } },
}),
],
2024-12-19 14:56:07 +00:00
2024-12-17 14:12:19 +00:00
prefetch: true,
2024-12-19 14:56:07 +00:00
i18n: {
locales: ['en', 'zh-cn'],
defaultLocale: 'en',
routing: {
fallbackType: 'rewrite',
2024-12-19 14:14:32 +00:00
prefixDefaultLocale: false,
},
},
2024-12-19 14:56:07 +00:00
adapter: vercel(),
})