diff --git a/server/src/services/postgrest_proxy.service.ts b/server/src/services/postgrest_proxy.service.ts index 215db8df1d..4cafabeb00 100644 --- a/server/src/services/postgrest_proxy.service.ts +++ b/server/src/services/postgrest_proxy.service.ts @@ -24,7 +24,7 @@ export class PostgrestProxyService { return this.httpProxy(req, res, next); } - private httpProxy = proxy(this.configService.get('PGRST_HOST'), { + private httpProxy = proxy(this.configService.get('PGRST_HOST') || 'http://localhost:3001', { proxyReqPathResolver: function (req) { const path = '/api/tooljet-db'; const pathRegex = new RegExp(`${maybeSetSubPath(path)}/proxy`);