1
0
James Ketrenos 77e550917e Change asset paths to be in current path
Signed-off-by: James Ketrenos <james_eikona@ketrenos.com>
2022-01-01 16:52:58 -08:00

12 lines
263 B
JavaScript
Executable File

const config = require("config");
let basePath = config.get("basePath");
basePath = "/" + basePath.replace(/^\/+/, "").replace(/\/+$/, "") + "/";
if (basePath == "//") {
basePath = "/";
}
console.log(`Using basepath ${basePath}`);
module.exports = basePath;