From f32ec89e89dff24452e01af8a01e49935b1091a8 Mon Sep 17 00:00:00 2001 From: Timur Demin Date: Sun, 26 Jan 2020 14:23:59 +0500 Subject: [PATCH] Stop hardcoding the app API domain --- Dockerfile | 2 +- src/const.ts | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 3cdf17e..138dd66 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,7 +8,7 @@ RUN yarn install COPY public /app/public COPY src /app/src -ARG REACT_APP_APIURI=https://amber.h.tdem.in/api/v0 +ARG REACT_APP_APIURI=/api/v0 RUN yarn build FROM nginx:1.16-alpine AS release diff --git a/src/const.ts b/src/const.ts index 900543c..3b0ec6c 100644 --- a/src/const.ts +++ b/src/const.ts @@ -1,5 +1,4 @@ -export const baseURI: string = - process.env.REACT_APP_APIURI || "https://amber.h.tdem.in/api/v0"; +export const baseURI: string = process.env.REACT_APP_APIURI || "/api/v0"; export const appVersion: string = "0.1.1"; export const appFullName: string = "Amber Web";