Merge branch '62-revise-docker-configuration-for-m1-deployment' into 'dev'
Fix backend url for dev server Closes #62 See merge request sa4-2020/the-sanmarinoes/frontend!66
This commit is contained in:
commit
228ada3305
1 changed files with 6 additions and 1 deletions
|
@ -2,7 +2,12 @@
|
||||||
|
|
||||||
import axios from "axios";
|
import axios from "axios";
|
||||||
|
|
||||||
let config = window.BACKEND_URL || "http://localhost:8080/";
|
let config;
|
||||||
|
if (window.BACKEND_URL !== "__BACKEND_URL__") {
|
||||||
|
config = window.BACKEND_URL + "/";
|
||||||
|
} else {
|
||||||
|
config = "http://localhost:8080/";
|
||||||
|
}
|
||||||
var tkn = localStorage.getItem("token");
|
var tkn = localStorage.getItem("token");
|
||||||
|
|
||||||
/** the ServiceSocket instance valid for the current session */
|
/** the ServiceSocket instance valid for the current session */
|
||||||
|
|
Loading…
Reference in a new issue