1
0
ketr.chat/server/lib/basepath.js
James Ketrenos 84ef980c42 Seeding with chat subsystem from peddlers of ketran
Signed-off-by: James Ketrenos <james@ketrenos.com>
2023-03-30 11:24:27 -07: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;