Skip to content

Commit 723ba51

Browse files
committed
style(db): Enable debug mode for development environment only
1 parent 0001f5b commit 723ba51

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/db/knexfile.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import path from 'node:path';
22
import type { Knex } from 'knex';
33
import { databaseConfig, appConfig } from '../config';
44

5-
// const developmentEnvironmentOnly = appConfig.env === 'development';
5+
const developmentEnvironmentOnly = appConfig.env === 'development';
66

77
const knexConfig: Knex.Config = {
88
client: 'pg',
@@ -17,7 +17,7 @@ const knexConfig: Knex.Config = {
1717
tableName: 'knex_migrations',
1818
directory: path.resolve(__dirname, './migrations'),
1919
},
20-
// debug: developmentEnvironmentOnly,
20+
debug: developmentEnvironmentOnly,
2121
seeds: { directory: path.resolve(__dirname, './seeds') },
2222
pool: {
2323
min: 0,

0 commit comments

Comments
 (0)