Implemented basic env var stuff

This commit is contained in:
2020-06-06 22:11:22 +02:00
parent 33f4b4f97e
commit ab32b3c94e
5 changed files with 19 additions and 2 deletions

7
src/assets/env.js Normal file
View File

@@ -0,0 +1,7 @@
(function(window) {
window["env"] = window["env"] || {};
// Environment variables
window["env"]["apiUrl"] = "http://localhost:5001";
window["env"]["debug"] = false;
})(this);

View File

@@ -0,0 +1,7 @@
(function(window) {
window.env = window.env || {};
// Environment variables
window["env"]["apiUrl"] = "${API_URL}";
window["env"]["debug"] = "${DEBUG}";
})(this);