2024-05-30 16:23:22 +02:00
|
|
|
import { defineConfig } from "astro/config";
|
2024-03-19 12:59:26 +01:00
|
|
|
import tailwind from "@astrojs/tailwind";
|
2024-05-30 16:23:22 +02:00
|
|
|
import mdx from "@astrojs/mdx";
|
|
|
|
import sitemap from "@astrojs/sitemap";
|
|
|
|
import node from "@astrojs/node";
|
|
|
|
import rehypePrettyCode from "rehype-pretty-code";
|
|
|
|
import rehypeSlug from "rehype-slug";
|
2024-04-07 11:11:04 +02:00
|
|
|
import react from "@astrojs/react";
|
2024-03-19 12:59:26 +01:00
|
|
|
|
|
|
|
// https://astro.build/config
|
|
|
|
export default defineConfig({
|
2024-07-08 23:50:02 +02:00
|
|
|
output: "hybrid",
|
2024-04-07 11:11:04 +02:00
|
|
|
adapter: node({
|
2024-05-30 16:23:22 +02:00
|
|
|
mode: "standalone",
|
2024-04-07 11:11:04 +02:00
|
|
|
}),
|
2024-05-30 16:23:22 +02:00
|
|
|
site: "https://cyrilsebek.cz",
|
|
|
|
integrations: [
|
|
|
|
tailwind({
|
|
|
|
applyBaseStyles: false,
|
|
|
|
}),
|
|
|
|
mdx({
|
|
|
|
syntaxHighlight: false,
|
|
|
|
rehypePlugins: [rehypeSlug, [rehypePrettyCode, { theme: "github-dark" }]],
|
|
|
|
}),
|
2024-07-09 15:29:05 +02:00
|
|
|
sitemap({
|
|
|
|
i18n: {
|
|
|
|
defaultLocale: "en",
|
|
|
|
locales: {
|
|
|
|
en: "en-US",
|
|
|
|
de: "de-DE",
|
|
|
|
cs: "cs-CZ",
|
|
|
|
fr: "fr-FR"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}),
|
2024-05-30 16:23:22 +02:00
|
|
|
react(),
|
|
|
|
],
|
2024-03-24 21:19:56 +01:00
|
|
|
i18n: {
|
2024-05-30 16:23:22 +02:00
|
|
|
locales: [
|
|
|
|
{
|
|
|
|
path: "cs",
|
|
|
|
codes: ["cs", "sk"],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: "de",
|
|
|
|
codes: ["de", "gsw"],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: "en",
|
|
|
|
codes: ["en"],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: "fr",
|
|
|
|
codes: ["fr"],
|
|
|
|
},
|
|
|
|
],
|
2024-03-24 21:19:56 +01:00
|
|
|
defaultLocale: "en",
|
2024-07-08 23:50:02 +02:00
|
|
|
routing: {
|
2024-07-09 10:46:16 +02:00
|
|
|
redirectToDefaultLocale: false,
|
2024-07-08 23:50:02 +02:00
|
|
|
prefixDefaultLocale: true
|
|
|
|
},
|
2024-03-25 14:41:07 +01:00
|
|
|
fallback: {
|
|
|
|
de: "en",
|
2024-05-30 16:23:22 +02:00
|
|
|
fr: "en",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
});
|