From e1878ed5114ecb9530a8822947b9e616546bb724 Mon Sep 17 00:00:00 2001 From: Jesse_Chen Date: Sun, 9 Aug 2026 19:35:41 +0800 Subject: [PATCH] fix standalone web health binding --- deploy/railway-web.Dockerfile | 3 ++- frontend/tests/staging-backend-workflows.test.ts | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/deploy/railway-web.Dockerfile b/deploy/railway-web.Dockerfile index f7def10d..a068889d 100644 --- a/deploy/railway-web.Dockerfile +++ b/deploy/railway-web.Dockerfile @@ -36,5 +36,6 @@ ARG NEXT_PUBLIC_SUPABASE_URL ARG NEXT_PUBLIC_SUPABASE_ANON_KEY ENV NEXT_PUBLIC_SUPABASE_URL=${NEXT_PUBLIC_SUPABASE_URL} \ NEXT_PUBLIC_SUPABASE_ANON_KEY=${NEXT_PUBLIC_SUPABASE_ANON_KEY} -ENV NODE_ENV=production +ENV NODE_ENV=production \ + HOSTNAME=0.0.0.0 CMD ["node", "server.js"] diff --git a/frontend/tests/staging-backend-workflows.test.ts b/frontend/tests/staging-backend-workflows.test.ts index 8706c194..61539f85 100644 --- a/frontend/tests/staging-backend-workflows.test.ts +++ b/frontend/tests/staging-backend-workflows.test.ts @@ -144,6 +144,7 @@ test("railway web image uses Next standalone runtime output", () => { ); assert.doesNotMatch(dockerfile, /COPY --from=build \/app \/app/); assert.match(dockerfile, /WORKDIR \/app\/frontend/); + assert.match(dockerfile, /ENV NODE_ENV=production \\\n HOSTNAME=0\.0\.0\.0/); assert.match(dockerfile, /CMD \["node", "server\.js"\]/); assert.doesNotMatch(dockerfile, /npm start/); });