mirror of
https://github.com/khairul169/code-share.git
synced 2025-04-29 00:59:37 +07:00
5 lines
137 B
TypeScript
5 lines
137 B
TypeScript
export const BASE_URL =
|
|
typeof window !== "undefined"
|
|
? location.protocol + "//" + location.host
|
|
: process.env.BASE_URL || "";
|