1
0
James Ketrenos 5544485e30 Still working on loading
Signed-off-by: James Ketrenos <james_eikona@ketrenos.com>
2022-01-26 13:05:43 -08:00

10 lines
236 B
JavaScript
Executable File

let basePath = process.env.REACT_APP_basePath;
basePath = "/" + basePath.replace(/^\/+/, "").replace(/\/+$/, "") + "/";
if (basePath == "//") {
basePath = "/";
}
console.log(`Using basepath ${basePath}`);
module.exports = basePath;