Website/astro.config.mjs
2023-12-19 19:22:19 +01:00

34 Zeilen
834 B
JavaScript

import { defineConfig, sharpImageService } from 'astro/config';
import svelte from "@astrojs/svelte";
import tailwind from "@astrojs/tailwind";
import configureI18n from "./astro-i18n.adapter";
import sitemap from "@astrojs/sitemap";
import robotsTxt from "astro-robots-txt";
// https://astro.build/config
export default defineConfig({
output: "static",
image: {
service: sharpImageService()
},
compressHTML: true,
site: "https://steamwar.de",
integrations: [svelte(), tailwind({
configFile: "./tailwind.config.cjs"
}), configureI18n(), sitemap({
i18n: {
defaultLocale: "en",
locales: {
en: "en-US",
de: "de-DE"
}
}
}), robotsTxt({
policy: [{
userAgent: "*",
disallow: ["/admin", "/login", "/dashboard", "/de", "/_astro"]
}]
})],
vite: {}
});