sleep-tracker-backend/data/dbConfig.js

9 lines
201 B
JavaScript

require("dotenv").config();
const knex = require('knex');
const config = require('../knexfile');
const environment = process.env.DB_ENV || 'development';
module.exports = knex(config[environment]);