From 3cf3151677076884b5d4a5017a254a6446feb15b Mon Sep 17 00:00:00 2001 From: KevinMidboe Date: Tue, 10 Mar 2020 00:21:16 +0100 Subject: [PATCH] New lottery.config property for setting api url. --- config/env/lottery.config.example.js | 3 ++- config/webpack.config.common.js | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/config/env/lottery.config.example.js b/config/env/lottery.config.example.js index 37f881b..cde3d8c 100644 --- a/config/env/lottery.config.example.js +++ b/config/env/lottery.config.example.js @@ -4,5 +4,6 @@ module.exports = { price: 10, message: "VINLOTTERI", date: 5, - hours: 15 + hours: 15, + apiUrl: undefined }; diff --git a/config/webpack.config.common.js b/config/webpack.config.common.js index 26d6fbf..50680e6 100644 --- a/config/webpack.config.common.js +++ b/config/webpack.config.common.js @@ -78,6 +78,7 @@ const webpackConfig = function(isDev) { __MESSAGE__: JSON.stringify(env.message), __DATE__: env.date, __HOURS__: env.hours, + __APIURL__: JSON.stringify(env.apiUrl), __PUSHENABLED__: JSON.stringify(require("./defaults/push") != false) }) ]