Skip to content

Commit

Permalink
Make API URL configurable due to #1
Browse files Browse the repository at this point in the history
  • Loading branch information
borisno2 committed Mar 8, 2021
1 parent e75092f commit 3e4c037
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/views/ExternalApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 3e4c037

Please sign in to comment.