Skip to content

Instantly share code, notes, and snippets.

@tdubs42
Last active September 8, 2021 19:12
Show Gist options
  • Save tdubs42/44fc5b044a40f72a5c1cb427aea2d6f9 to your computer and use it in GitHub Desktop.
Save tdubs42/44fc5b044a40f72a5c1cb427aea2d6f9 to your computer and use it in GitHub Desktop.
baseline for db-config file - used with knex
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