From f016f7955ef7a9e7199545aadaf0b5b453256eaa Mon Sep 17 00:00:00 2001 From: Kartik Choudhary Date: Sat, 8 Aug 2020 22:39:56 +0530 Subject: [PATCH] Setup dev --- server/env.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/env.js b/server/env.js index 37659b6..ad6aa6b 100644 --- a/server/env.js +++ b/server/env.js @@ -1,11 +1,11 @@ import dotenv from 'dotenv'; dotenv.config(); -export const { DB_NAME, MONGO_PASSWORD, API_KEY, SALT_ROUNDS } = process.env; +export const { MONGO_URI, API_KEY, SALT_ROUNDS } = process.env; export const API_PORT = process.env.API_PORT || 5000; -export let DB_URL = ''; +export let DB_URL = MONGO_URI; export let hosts = []; export let callbackUrl = ''; export const TURN_INTERVAL = 0; @@ -18,5 +18,5 @@ if (process.env.NODE_ENV === 'production') { // React App URL hosts = ['http://localhost:3000']; callbackUrl = 'http://localhost:5000'; - DB_URL = 'mongodb://localhost:27017/dash' + DB_URL = process.env.MONGO_URI || 'mongodb://localhost:27017/dash' }