andela/magma-backend

View on GitHub
src/database/config/config.js

Summary

Maintainability
A
0 mins
Test Coverage
require('dotenv').config();

module.exports = {
  development: {
    use_env_variable: 'DATABASE_DEV_URL'
  },
  test: {
    use_env_variable: 'DATABASE_TEST_URL'
  },
  production: {
    use_env_variable: 'DATABASE_URL'
  },
};