No require any ENV_VAR

This commit is contained in:
Sebastian Seedorf
2020-11-15 23:57:04 +01:00
parent 72b81cae5e
commit 6a21fc1169
15 changed files with 102 additions and 67 deletions

View File

@@ -1,4 +1,4 @@
- const baseUrl = Config.EXTERNAL_BASE_URL;
- const baseUrl = DefaultConfig.EXTERNAL_BASE_URL;
doctype html
html
head
@@ -13,5 +13,5 @@ html
require(['src/index'], function (index) {
index.setConfig({EXTERNAL_BASE_URL: '#{baseUrl}'});
});
if !Config.isProduction
if !DefaultConfig.isProduction
script(type='text/javascript', src=baseUrl+'/auto-reload/client.js')