personal-website/astro.config.mjs

42 lines
846 B
JavaScript
Raw Normal View History

2024-03-19 12:59:26 +01:00
import { defineConfig } from 'astro/config';
import tailwind from "@astrojs/tailwind";
import mdx from '@astrojs/mdx';
import sitemap from '@astrojs/sitemap';
2024-04-07 11:11:04 +02:00
import node from '@astrojs/node';
import react from "@astrojs/react";
2024-03-19 12:59:26 +01:00
// https://astro.build/config
export default defineConfig({
2024-04-05 12:03:13 +02:00
output: "hybrid",
2024-04-07 11:11:04 +02:00
adapter: node({
mode: "standalone"
}),
site: 'https://cyrilsebek.cz',
2024-04-07 11:11:04 +02:00
integrations: [tailwind({
applyBaseStyles: false,
}), mdx(), sitemap(), react()],
i18n: {
2024-04-07 11:11:04 +02:00
locales: [{
path: "cs",
codes: ["cs", "sk"]
}, {
path: "de",
codes: ["de", "gsw"]
}, {
path: "en",
codes: ["en"]
}, {
path: "fr",
codes: ["fr"]
}],
defaultLocale: "en",
routing: {
prefixDefaultLocale: true
},
fallback: {
de: "en",
fr: "en"
2024-04-07 11:11:04 +02:00
}
}
2024-03-19 12:59:26 +01:00
});