code-share/lib/consts.ts

3 lines
105 B
TypeScript
Raw Normal View History

2024-02-22 12:14:58 +00:00
export const BASE_URL =
typeof window !== "undefined" ? location.protocol + "//" + location.host : "";