knexfile.ts 383 B

12345678910111213141516171819
  1. import env from "./server/env";
  2. module.exports = {
  3. production: {
  4. client: "postgresql",
  5. connection: {
  6. host: env.DB_HOST,
  7. database: env.DB_NAME,
  8. user: env.DB_USER,
  9. port: env.DB_PORT,
  10. password: env.DB_PASSWORD,
  11. ssl: env.DB_SSL,
  12. },
  13. migrations: {
  14. tableName: "knex_migrations",
  15. directory: "server/migrations"
  16. }
  17. }
  18. };