Skip to content
This repository has been archived by the owner on Jan 20, 2024. It is now read-only.

Commit

Permalink
Stop hardcoding the app API domain
Browse files Browse the repository at this point in the history
  • Loading branch information
tdemin committed Jan 26, 2020
1 parent f42d494 commit f32ec89
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Expand Up @@ -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
Expand Down
3 changes: 1 addition & 2 deletions 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";
Expand Down

0 comments on commit f32ec89

Please sign in to comment.