Skip to content

Commit 8b3e9cb

Browse files
committed
fix(render): healthCheckPath -> /api/health
/health returned 404 because the route is registered under app.Group('/api') in main.go. Render was waiting 15 minutes for a 200, then restarting. Render port detection saw :10000 open, but HTTP health check still failed on the wrong path. Also updated the stale header comment: there is no senzen-api.pantorn.site CNAME anymore. Backend is reached via Vercel path-based rewrite (frontend/vercel.json). Bundled: DB_USER updated to session-pooler format postgres.bqkveselhvqmknnvwgfx (Supabase requires this format for pooler connections on port 5432).
1 parent 08f3e3c commit 8b3e9cb

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

render.yaml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,13 @@
88
# Free plan = 512 MB RAM, 0.1 vCPU, sleeps after 15 min idle.
99
# Auto-deploys on every push to main.
1010
#
11-
# NOTE on custom domains: render.yaml does NOT support custom
12-
# domains on the free plan. The service runs at
11+
# NOTE on routing: This service runs at
1312
# https://senzen-api.onrender.com
14-
# and Cloudflare proxies the public URL (senzen-api.pantorn.site)
15-
# to it via "Full" SSL mode. See infra/terraform/cloudflare.tf.
13+
# but is exposed publicly as
14+
# https://senzen.pantorn.site/api/...
15+
# via a Vercel catch-all rewrite (see frontend/vercel.json).
16+
# No DNS record for the backend exists — Vercel proxies the
17+
# path. No custom domain is configured on Render.
1618
#
1719
# Sensitive env vars are marked `sync: false` — you set the
1820
# values once in the Render dashboard, and they stay out of git.
@@ -28,7 +30,7 @@ services:
2830
rootDir: backend
2931
buildCommand: go build -ldflags="-s -w" -o main .
3032
startCommand: ./main
31-
healthCheckPath: /health
33+
healthCheckPath: /api/health
3234
autoDeploy: true
3335

3436
# ─────────────────────────────────────────────────────────
@@ -40,7 +42,7 @@ services:
4042
- key: DB_PORT
4143
value: "5432"
4244
- key: DB_USER
43-
value: postgres
45+
value: postgres.bqkveselhvqmknnvwgfx
4446
- key: DB_NAME
4547
value: postgres
4648
- key: FRONTEND_URL

0 commit comments

Comments
 (0)