mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-23 17:08:34 +00:00
Merge pull request #7576 from ToolJet/hotfix/tjdb-default-host
Hotfix: Add default host for tjdb proxy
This commit is contained in:
commit
fa976d72c3
1 changed files with 1 additions and 1 deletions
|
|
@ -24,7 +24,7 @@ export class PostgrestProxyService {
|
|||
return this.httpProxy(req, res, next);
|
||||
}
|
||||
|
||||
private httpProxy = proxy(this.configService.get<string>('PGRST_HOST'), {
|
||||
private httpProxy = proxy(this.configService.get<string>('PGRST_HOST') || 'http://localhost:3001', {
|
||||
proxyReqPathResolver: function (req) {
|
||||
const path = '/api/tooljet-db';
|
||||
const pathRegex = new RegExp(`${maybeSetSubPath(path)}/proxy`);
|
||||
|
|
|
|||
Loading…
Reference in a new issue