Browse Source

fix(nocodb): use port from connection URL

Signed-off-by: mertmit <mertmit99@gmail.com>
pull/3578/head
mertmit 2 years ago
parent
commit
fe917975b0
  1. 2
      packages/nocodb/src/lib/utils/NcConfigFactory.ts

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

@ -214,6 +214,7 @@ export default class NcConfigFactory implements NcConfig {
...defaultConnectionConfig,
...parsedQuery,
host: url.hostname,
port: +url.port,
},
// pool: {
// min: 1,
@ -325,6 +326,7 @@ export default class NcConfigFactory implements NcConfig {
...defaultConnectionConfig,
...parsedQuery,
host: url.hostname,
port: +url.port,
},
acquireConnectionTimeout: 600000,
...(url.searchParams.has('search_path')

Loading…
Cancel
Save