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
+4 -1
View File
@@ -1,5 +1,8 @@
FROM node:22.20-alpine
ENV ASTRO_TELEMETRY_DISABLED=1 \
ASTRO_DISABLE_UPDATE_CHECK=true
WORKDIR /app
RUN chown node:node /app
@@ -12,4 +15,4 @@ COPY --chown=node:node . .
EXPOSE 4321
CMD ["npm", "run", "dev"]
CMD ["./node_modules/.bin/astro", "dev"]
+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"],
},
},
});
}));