Merge pull request #416 from pi-hole/new/URLOverride

Allow for custom API URL during development
This commit is contained in:
Adam Warner
2019-11-16 23:52:09 +00:00
committed by GitHub
+4 -1
View File
@@ -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;