mirror of
https://github.com/YuzuZensai/Termix.git
synced 2026-09-14 02:59:06 +00:00
6 lines
194 B
TypeScript
6 lines
194 B
TypeScript
export function getBasePath(): string {
|
|
const base = import.meta.env.BASE_URL || "/";
|
|
if (base === "./" || base === "/") return "";
|
|
return base.endsWith("/") ? base.slice(0, -1) : base;
|
|
}
|