Optimize astro.config.mjs
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Dieser Commit ist enthalten in:
Chaoscaot 2024-02-16 23:51:55 +01:00
Ursprung 4ed5ed3e35
Commit af870a70bc

Datei anzeigen

@ -11,21 +11,36 @@ import mdx from "@astrojs/mdx";
// https://astro.build/config
export default defineConfig({
output: "static", image: {
output: "static",
image: {
service: sharpImageService(),
}, compressHTML: true, site: "https://steamwar.de", integrations: [svelte(), tailwind({
},
compressHTML: true,
site: "https://steamwar.de",
integrations: [
svelte(),
tailwind({
configFile: "./tailwind.config.cjs",
}), configureI18n(), sitemap({
}),
configureI18n(),
sitemap({
i18n: {
defaultLocale: "en", locales: {
en: "en-US", de: "de-DE",
},
},
}), robotsTxt({
}),
robotsTxt({
policy: [{
userAgent: "*", disallow: ["/admin", "/login", "/dashboard", "/de", "/_astro"],
}],
}), mdx()], vite: {
}),
mdx()
],
experimental: {
contentCollectionCache: true,
},
vite: {
resolve: {
alias: {
"@components": path.resolve("./src/components"),