Explorar el Código

動的なドメイン対応

develop
sosuke.iwabuchi hace 2 años
padre
commit
26b5a31d5f
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. +2
    -1
      src/config.ts

+ 2
- 1
src/config.ts Ver fichero

@@ -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 || "";

Cargando…
Cancelar
Guardar