Lambda-School-Labs/startup-grant-database-be

View on GitHub
data/db-config.js

Summary

Maintainability
A
0 mins
Test Coverage
const knex = require('knex');

const config = require('../knexfile.js');

// This is needed for the deployed Heroku DB to function
// If the Heroku ENV isn't there, it will default to the development environment
const dbEnv = process.env.DB_ENV || 'development';

module.exports = knex(config[dbEnv]);