From 65afa886af057aa35c0799fa1b8a3edfcd5e2df9 Mon Sep 17 00:00:00 2001 From: josh Date: Mon, 27 Apr 2026 20:22:00 -0400 Subject: [PATCH] Fix health check 404: add /api/health route, remove nginx /health proxy Frontend API_BASE is /api in production, so health check was hitting /api/health which didn't exist. Added /api/health on the server and removed the now-unnecessary separate nginx /health proxy rule. Co-Authored-By: Claude Opus 4.6 --- apps/server/src/index.ts | 1 + apps/web/nginx.conf | 4 ---- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/apps/server/src/index.ts b/apps/server/src/index.ts index 3779056..6dca455 100644 --- a/apps/server/src/index.ts +++ b/apps/server/src/index.ts @@ -26,6 +26,7 @@ app.use('*', cors({ })); app.get('/health', (c) => c.json({ status: 'ok', version: '0.1.0' })); +app.get('/api/health', (c) => c.json({ status: 'ok', version: '0.1.0' })); app.get('/api/config', (c) => c.json({ requireInvite: process.env.REQUIRE_INVITE !== 'false', diff --git a/apps/web/nginx.conf b/apps/web/nginx.conf index f49693a..c994f3f 100644 --- a/apps/web/nginx.conf +++ b/apps/web/nginx.conf @@ -10,10 +10,6 @@ server { proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; } - location /health { - proxy_pass http://server:3001; - } - location / { try_files $uri $uri/ /index.html; } -- 2.39.5