From c8fa99c6d214d44537ea10be5caa55cf5982fd00 Mon Sep 17 00:00:00 2001 From: Tim Olson Date: Thu, 16 Apr 2026 18:41:41 -0400 Subject: [PATCH] fix: read database URL from secrets.yaml as fallback configData.database?.url was removed from the prod configmap (database credentials belong in secrets), but the code only checked configData. Add secretsData.database?.url as a fallback so prod can supply the URL via the gateway-secrets Secret. Co-Authored-By: Claude Sonnet 4.6 --- gateway/src/main.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gateway/src/main.ts b/gateway/src/main.ts index 187b1547..c801da3f 100644 --- a/gateway/src/main.ts +++ b/gateway/src/main.ts @@ -86,7 +86,7 @@ function loadConfig() { 'http://localhost:5173', 'http://localhost:8080', ], - databaseUrl: configData.database?.url || process.env.DATABASE_URL || 'postgresql://localhost/dexorder', + databaseUrl: configData.database?.url || secretsData.database?.url || process.env.DATABASE_URL || 'postgresql://localhost/dexorder', // Authentication configuration authSecret: secretsData.auth?.secret || process.env.AUTH_SECRET || 'change-me-in-production',