diff --git a/src/config.development.tsx b/src/config.development.tsx index d9e4d4f..61b835e 100644 --- a/src/config.development.tsx +++ b/src/config.development.tsx @@ -10,8 +10,11 @@ import { Config } from "./config"; +const apiUrlBase = + process.env.REACT_APP_CUSTOM_API_URL || process.env.PUBLIC_URL; + export default { developmentMode: true, fakeAPI: false, - apiPath: process.env.PUBLIC_URL + "/api" + apiPath: apiUrlBase + "/api" } as Config;