diff --git a/app/config/appConfig.js b/app/config/appConfig.js index 1802a53..b4310e0 100644 --- a/app/config/appConfig.js +++ b/app/config/appConfig.js @@ -9,7 +9,7 @@ const APP_URL = ? process.env.APP_URL || "http://market-alarm" : process.env.APP_URL || `${APP_BASE_URL}:${APP_PORT}`; -const STAGING = process.env.NODE_ENV !== "production"; +const STAGING = process.env.SETTINGS !== "production"; const DEFAULT_TIMEZONE = "Europe/Sarajevo"; diff --git a/development.env b/development.env index 150f8be..4bfb37d 100644 --- a/development.env +++ b/development.env @@ -8,6 +8,9 @@ SEQUELIZE_LOGGING=0- no sequelize logging, 1- log to the console PORT=Port for the app, defaults to 5000 APP_BASE_URL=base url for the app +SETTINGS=Variable to denote development, staging and production + + MAX_REAL_ESTATES_IN_EMAIL=Max number of real estates that will be shown in email, others will be truncated and URL with full list will be shwon MAX_REAL_ESTATES_IN_FIRST_EMAIL=Max number of real estates that will be shown in first (welcome) email