Make API location configurable
This commit is contained in:
1 parent
c5d8cd1641
commit
e1d9b13045
1 file changed
+1
-1
@@ -158,7 +158,7 @@ const Results = (): JSX.Element => {
|
||||
|
||||
const urlTypeOnly = ['url'] as AddressType[]; // Many jobs only run with these address types
|
||||
|
||||
const api = '/api';
|
||||
const api = process.env.REACT_APP_API_ENDPOINT || '/api'; // Where is the API hosted?
|
||||
|
||||
// Fetch and parse IP address for given URL
|
||||
const [ipAddress, setIpAddress] = useMotherHook({
|
||||
|
||||
Reference in new issue
Block a user