mirror of
https://github.com/gosticks/web.git
synced 2026-08-12 20:20:25 +00:00
Merge pull request #416 from pi-hole/new/URLOverride
Allow for custom API URL during development
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user