mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-14 23:52:09 +00:00
40 lines
748 B
TypeScript
40 lines
748 B
TypeScript
// eslint-disable-next-line
|
|
import "ts-node/register";
|
|
|
|
import dotenv from "dotenv";
|
|
import type { Knex } from "knex";
|
|
import path from "path";
|
|
|
|
// Update with your config settings.
|
|
dotenv.config({
|
|
path: path.join(__dirname, "../../.env"),
|
|
debug: true
|
|
});
|
|
export default {
|
|
development: {
|
|
client: "postgres",
|
|
connection: process.env.DB_CONNECTION_URI,
|
|
pool: {
|
|
min: 2,
|
|
max: 10
|
|
},
|
|
seeds: {
|
|
directory: "./seeds"
|
|
},
|
|
migrations: {
|
|
tableName: "infisical_migrations"
|
|
}
|
|
},
|
|
production: {
|
|
client: "postgres",
|
|
connection: process.env.DB_CONNECTION_URI,
|
|
pool: {
|
|
min: 2,
|
|
max: 10
|
|
},
|
|
migrations: {
|
|
tableName: "infisical_migrations"
|
|
}
|
|
}
|
|
} as Knex.Config;
|