mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-23 03:01:07 +00:00
ee85d948e2
GitOrigin-RevId: ef2ef77e26df59d1af3df6dc664e284d3c70102d
19 lines
402 B
JavaScript
19 lines
402 B
JavaScript
const config = require('config')
|
|
|
|
const baseConfig = {
|
|
client: 'postgresql',
|
|
connection: config.herokuDatabaseUrl || config.databaseUrl,
|
|
pool: {
|
|
min: parseInt(config.databasePoolMin, 10),
|
|
max: parseInt(config.databasePoolMax, 10),
|
|
},
|
|
migrations: {
|
|
tableName: 'knex_migrations',
|
|
},
|
|
}
|
|
|
|
module.exports = {
|
|
development: baseConfig,
|
|
production: baseConfig,
|
|
test: baseConfig,
|
|
}
|