30 lines
627 B
JavaScript
30 lines
627 B
JavaScript
// @ts-check
|
|
import { defineConfig } from 'astro/config';
|
|
|
|
import tailwindcss from '@tailwindcss/vite';
|
|
import { fileURLToPath } from 'node:url';
|
|
|
|
import solidJs from "@astrojs/solid-js";
|
|
|
|
// https://astro.build/config
|
|
export default defineConfig({
|
|
i18n: {
|
|
locales: ["en", "th"],
|
|
defaultLocale: "en",
|
|
routing: {
|
|
prefixDefaultLocale: true,
|
|
redirectToDefaultLocale: false
|
|
}
|
|
},
|
|
|
|
vite: {
|
|
plugins: [tailwindcss()],
|
|
resolve: {
|
|
alias: {
|
|
"@": fileURLToPath(new URL("./src", import.meta.url))
|
|
}
|
|
}
|
|
},
|
|
|
|
integrations: [solidJs()]
|
|
}); |