Website/astro.config.mjs

32 Zeilen
789 B
JavaScript

2023-09-24 16:33:14 +02:00
import { defineConfig, sharpImageService } from 'astro/config';
2023-09-20 20:52:40 +02:00
import svelte from "@astrojs/svelte";
import tailwind from "@astrojs/tailwind";
2023-11-03 20:31:27 +01:00
import configureI18n from "./astro-i18n.adapter";
2023-12-10 17:14:10 +01:00
import sitemap from "@astrojs/sitemap";
import robotsTxt from "astro-robots-txt";
2023-09-20 20:52:40 +02:00
// https://astro.build/config
export default defineConfig({
output: "static",
2023-09-24 16:33:14 +02:00
image: {
2023-12-10 17:14:10 +01:00
service: sharpImageService()
2023-09-24 16:33:14 +02:00
},
2023-11-03 20:31:27 +01:00
compressHTML: true,
2023-12-10 17:14:10 +01:00
site: "https://steamwar.de",
integrations: [svelte(), tailwind(), configureI18n(), sitemap({
i18n: {
defaultLocale: "en",
locales: {
en: "en-US",
de: "de-DE"
}
}
}), robotsTxt({
policy: [{
userAgent: "*",
disallow: ["/admin", "/login", "/dashboard", "/de", "/_astro"]
}]
})],
2023-12-07 00:17:32 +01:00
vite: {}
2023-12-03 19:31:29 +01:00
});