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:
Claudio Maggioni 2020-03-25 14:14:38 +01:00
commit 228ada3305

View File

@ -2,7 +2,12 @@
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");
/** the ServiceSocket instance valid for the current session */