Files
frontend_v2/astro.config.mjs
toom1996 efd28d59e7
Some checks failed
deploy / deploy (push) Has been cancelled
update
2026-08-16 20:51:04 +08:00

26 lines
580 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// @ts-check
import { defineConfig } from 'astro/config';
import tailwindcss from '@tailwindcss/vite';
import alpinejs from '@astrojs/alpinejs';
// https://astro.build/config
export default defineConfig({
vite: {
plugins: [tailwindcss()]
},
i18n: {
defaultLocale: 'en',
locales: ['en', 'cn'],
routing: {
prefixDefaultLocale: true, // 英文在根路径 /shows,中文在 /cn/shows
},
},
build: {
// 示例:在构建过程中生 成`page.html` 而不是 `page/index.html`。
// format: 'file'
},
integrations: [alpinejs()]
});