Cyril Šebek
da21c622e8
- chore: update @astrojs - fix: changed rendering type from 'hybrid' to 'static' as they were merged in @astrojs v5.0 - new: new composition - Space Experiments
68 lines
1.3 KiB
JavaScript
68 lines
1.3 KiB
JavaScript
import { defineConfig } from "astro/config";
|
|
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";
|
|
import react from "@astrojs/react";
|
|
|
|
// https://astro.build/config
|
|
export default defineConfig({
|
|
output: "static",
|
|
adapter: node({
|
|
mode: "standalone",
|
|
}),
|
|
site: "https://cyrilsebek.cz",
|
|
integrations: [
|
|
tailwind({
|
|
applyBaseStyles: false,
|
|
}),
|
|
mdx({
|
|
syntaxHighlight: false,
|
|
rehypePlugins: [rehypeSlug, [rehypePrettyCode, { theme: "github-dark" }]],
|
|
}),
|
|
sitemap({
|
|
i18n: {
|
|
defaultLocale: "en",
|
|
locales: {
|
|
en: "en-US",
|
|
de: "de-DE",
|
|
cs: "cs-CZ",
|
|
fr: "fr-FR"
|
|
}
|
|
}
|
|
}),
|
|
react(),
|
|
],
|
|
i18n: {
|
|
locales: [
|
|
{
|
|
path: "cs",
|
|
codes: ["cs", "sk"],
|
|
},
|
|
{
|
|
path: "de",
|
|
codes: ["de", "gsw"],
|
|
},
|
|
{
|
|
path: "en",
|
|
codes: ["en"],
|
|
},
|
|
{
|
|
path: "fr",
|
|
codes: ["fr"],
|
|
},
|
|
],
|
|
defaultLocale: "en",
|
|
routing: {
|
|
redirectToDefaultLocale: false,
|
|
prefixDefaultLocale: true
|
|
},
|
|
fallback: {
|
|
de: "en",
|
|
fr: "en",
|
|
},
|
|
},
|
|
});
|