code-share/lib/consts.ts

5 lines
137 B
TypeScript
Raw Normal View History

2024-02-22 12:14:58 +00:00
export const BASE_URL =
2024-03-03 18:55:51 +07:00
typeof window !== "undefined"
? location.protocol + "//" + location.host
: process.env.BASE_URL || "";