Browse Source

fix(gui-v2): include host from NC_DB url

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/3528/head
Pranav C 2 years ago
parent
commit
1163c4580a
  1. 3
      packages/nocodb/src/lib/utils/NcConfigFactory.ts

3
packages/nocodb/src/lib/utils/NcConfigFactory.ts

@ -317,7 +317,8 @@ export default class NcConfigFactory implements NcConfig {
client: url.protocol.replace(':', ''), client: url.protocol.replace(':', ''),
connection: { connection: {
...defaultConnectionConfig, ...defaultConnectionConfig,
...parsedQuery ...parsedQuery,
host: url.hostname
}, },
acquireConnectionTimeout: 600000, acquireConnectionTimeout: 600000,
...(url.searchParams.has('search_path') ...(url.searchParams.has('search_path')

Loading…
Cancel
Save