personal-website/astro.config.mjs

55 lines
1.1 KiB
JavaScript
Raw Normal View History

import { defineConfig } from "astro/config";
2024-03-19 12:59:26 +01:00
import tailwind from "@astrojs/tailwind";
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({
output: "hybrid",
2024-04-07 11:11:04 +02:00
adapter: node({
mode: "standalone",
2024-04-07 11:11:04 +02:00
}),
site: "https://cyrilsebek.cz",
integrations: [
tailwind({
applyBaseStyles: false,
}),
mdx({
syntaxHighlight: false,
rehypePlugins: [rehypeSlug, [rehypePrettyCode, { theme: "github-dark" }]],
}),
sitemap(),
react(),
],
i18n: {
locales: [
{
path: "cs",
codes: ["cs", "sk"],
},
{
path: "de",
codes: ["de", "gsw"],
},
{
path: "en",
codes: ["en"],
},
{
path: "fr",
codes: ["fr"],
},
],
defaultLocale: "en",
routing: "manual",
fallback: {
de: "en",
fr: "en",
},
},
});