diff --git a/src/config.ts b/src/config.ts index ead6938..0c1b835 100644 --- a/src/config.ts +++ b/src/config.ts @@ -9,4 +9,5 @@ function getEnv() { export const APP_ENV: "local" | "staging" | "production" | "other" = getEnv(); // API // ---------------------------------------------------------------------- -export const HOST_API = process.env.REACT_APP_HOST_API_KEY || ""; +export const HOST_API = + process.env.REACT_APP_HOST_API_KEY || window.location.origin || "";