Last active
September 8, 2021 19:12
-
-
Save tdubs42/44fc5b044a40f72a5c1cb427aea2d6f9 to your computer and use it in GitHub Desktop.
baseline for db-config file - used with knex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const knex = require('knex') | |
const configs = require('../knexfile.js') | |
const environment = process.env.NODE_ENV || 'development' | |
module.exports = knex(configs[environment]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment