From e97046c2670d95a8060660dafc9752bf2f91aaf0 Mon Sep 17 00:00:00 2001 From: "autofix-ci[bot]" <114827586+autofix-ci[bot]@users.noreply.github.com> Date: Sun, 5 Oct 2025 17:14:11 +0000 Subject: [PATCH] [autofix.ci] apply automated fixes --- packages/server/src/utils/traefik/application.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/server/src/utils/traefik/application.ts b/packages/server/src/utils/traefik/application.ts index ccc4e3f2..8e9d7afd 100644 --- a/packages/server/src/utils/traefik/application.ts +++ b/packages/server/src/utils/traefik/application.ts @@ -265,9 +265,10 @@ export const writeTraefikConfigRemote = async ( const configPath = path.join(DYNAMIC_TRAEFIK_PATH, `${appName}.yml`); if (traefikConfig.http?.middlewares) { // traefik will fail to start if the file contains middlewares entry but no middlewares are defined - const hasNoMiddlewares = Object.keys(traefikConfig.http.middlewares).length === 0; + const hasNoMiddlewares = + Object.keys(traefikConfig.http.middlewares).length === 0; if (hasNoMiddlewares) { - // if there aren't any middlewares, remove the whole section + // if there aren't any middlewares, remove the whole section delete traefikConfig.http.middlewares; } }