diff --git a/apps/api/src/routes/webhooks/traefik/handlers.ts b/apps/api/src/routes/webhooks/traefik/handlers.ts index d6a4b5172..18bdcfebf 100644 --- a/apps/api/src/routes/webhooks/traefik/handlers.ts +++ b/apps/api/src/routes/webhooks/traefik/handlers.ts @@ -395,7 +395,7 @@ export async function proxyConfiguration(request: FastifyRequest, remote } found = JSON.parse(JSON.stringify(found).replaceAll('$$id', id)); for (const oneService of Object.keys(found.services)) { - const isDomainConfiguration = found.services[oneService].proxy && found.services[oneService].proxy.filter(p => p.domain); + const isDomainConfiguration = found?.services[oneService]?.proxy?.filter(p => p.domain) ?? []; if (isDomainConfiguration.length > 0) { const { proxy } = found.services[oneService]; for (let configuration of proxy) {