26 lines
578 B
JavaScript
26 lines
578 B
JavaScript
// @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: false, // 英文在根路径 /shows,中文在 /cn/shows
|
||
},
|
||
},
|
||
build: {
|
||
// 示例:在构建过程中生 成`page.html` 而不是 `page/index.html`。
|
||
format: 'file'
|
||
},
|
||
integrations: [alpinejs()]
|
||
}); |