change how APP_URL is used, use JS templating string

This commit is contained in:
Bilal Catic
2019-09-05 14:24:29 +02:00
parent f311404968
commit 1d29f6c8ac
4 changed files with 50 additions and 50 deletions

9
app/config/appConfig.js Normal file
View File

@@ -0,0 +1,9 @@
const APP_PORT = process.env.APP_PORT || 5000;
const APP_BASE_URL = process.env.APP_BASE_URL || "http://localhost";
const APP_URL = `${APP_BASE_URL}:${APP_PORT}`;
module.exports = {
APP_PORT,
APP_URL
};