Enabling optional https in development

This commit is contained in:
David Négrier 2020-06-25 10:32:47 +02:00
parent 371b4f0063
commit d18abaf067
4 changed files with 27 additions and 5 deletions

View file

@ -1,5 +1,5 @@
const DEBUG_MODE: boolean = process.env.DEBUG_MODE == "true";
const API_URL = process.env.API_URL || "http://api.workadventure.localhost";
const API_URL = window.location.protocol + '//' + process.env.API_URL || "http://api.workadventure.localhost";
const RESOLUTION = 3;
const ZOOM_LEVEL = 1/*3/4*/;
const POSITION_DELAY = 200; // Wait 200ms between sending position events