From 26b5a31d5f4fa50796b0df3691fb3e7481b429a9 Mon Sep 17 00:00:00 2001 From: "sosuke.iwabuchi" Date: Mon, 7 Aug 2023 17:54:26 +0900 Subject: [PATCH] =?UTF-8?q?=E5=8B=95=E7=9A=84=E3=81=AA=E3=83=89=E3=83=A1?= =?UTF-8?q?=E3=82=A4=E3=83=B3=E5=AF=BE=E5=BF=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/config.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 || "";