Lambda-School-Labs/Labs26-StorySquad-BE-TeamB

View on GitHub
data/db-config.js

Summary

Maintainability
A
0 mins
Test Coverage
require('dotenv').config();
const knex = require('knex');
const dbEnvironment = process.env.NODE_ENV || 'development';
const knexConfig = require('../config/knexfile')[dbEnvironment];
module.exports = knex(knexConfig);