New lottery.config property for setting api url.

This commit is contained in:
2020-03-10 00:21:16 +01:00
parent 1ce0d02b72
commit 3cf3151677
2 changed files with 3 additions and 1 deletions

View File

@@ -4,5 +4,6 @@ module.exports = {
price: 10, price: 10,
message: "VINLOTTERI", message: "VINLOTTERI",
date: 5, date: 5,
hours: 15 hours: 15,
apiUrl: undefined
}; };

View File

@@ -78,6 +78,7 @@ const webpackConfig = function(isDev) {
__MESSAGE__: JSON.stringify(env.message), __MESSAGE__: JSON.stringify(env.message),
__DATE__: env.date, __DATE__: env.date,
__HOURS__: env.hours, __HOURS__: env.hours,
__APIURL__: JSON.stringify(env.apiUrl),
__PUSHENABLED__: JSON.stringify(require("./defaults/push") != false) __PUSHENABLED__: JSON.stringify(require("./defaults/push") != false)
}) })
] ]