1
0
ketr.chat/server/lib/basepath.js
James Ketrenos 269081b565 It is running,b ut not yet letting you chat
Signed-off-by: James Ketrenos <james@ketrenos.com>
2023-03-30 18:29:34 -07:00

11 lines
256 B
JavaScript
Executable File

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