Files
Termix/src/ui/lib/base-path.ts
T

6 lines
194 B
TypeScript
Raw Normal View History

+4
2026-02-12 22:28:13 -06:00
export function getBasePath(): string {
const base = import.meta.env.BASE_URL || "/";
if (base === "./" || base === "/") return "";
return base.endsWith("/") ? base.slice(0, -1) : base;
}