From 3e4c0376d9a03a46df4f6c9fc8e399d01d27f975 Mon Sep 17 00:00:00 2001 From: Josh Calder Date: Mon, 8 Mar 2021 12:02:30 +1100 Subject: [PATCH] Make API URL configurable due to #1 --- src/views/ExternalApi.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/ExternalApi.js b/src/views/ExternalApi.js index 2b75f1d..43ae04f 100644 --- a/src/views/ExternalApi.js +++ b/src/views/ExternalApi.js @@ -6,7 +6,7 @@ import { getConfig } from "../config"; import Loading from "../components/Loading"; export const ExternalApiComponent = () => { - const { apiOrigin = "/api", audience } = getConfig(); + const { apiOrigin = `${process.env.REACT_APP_API_URL}`, audience } = getConfig(); const [state, setState] = useState({ showResult: false,