Website/astro.config.mjs

37 Zeilen
890 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-12-10 21:52:07 +01:00
experimental: {
optimizeHoistedScript: true,
},
2023-11-03 20:31:27 +01:00
compressHTML: true,
2023-12-10 17:14:10 +01:00
site: "https://steamwar.de",
2023-12-14 21:07:31 +01:00
integrations: [svelte(), tailwind({
configFile: "./tailwind.config.cjs"
}), configureI18n(), sitemap({
2023-12-10 17:14:10 +01:00
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
});