fix: suppress application healthcheck logs

This commit is contained in:
bisco
2026-06-24 11:26:00 +02:00
parent 719cdce9c1
commit 84d08dd1f1
7 changed files with 30 additions and 7 deletions
+14 -2
View File
@@ -1,14 +1,26 @@
import { defineConfig } from "astro/config";
export default defineConfig({
export default defineConfig(({ command }) => ({
output: "static",
experimental:
command === "dev"
? {
logger: {
entrypoint: "astro/logger/node",
config: {
level: "warn",
},
},
}
: undefined,
server: {
host: true,
port: 4321,
},
vite: {
logLevel: command === "dev" ? "warn" : undefined,
server: {
allowedHosts: ["azionelab.org"],
},
},
});
}));