Make API location configurable
This commit is contained in:
@@ -158,7 +158,7 @@ const Results = (): JSX.Element => {
|
|||||||
|
|
||||||
const urlTypeOnly = ['url'] as AddressType[]; // Many jobs only run with these address types
|
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
|
// Fetch and parse IP address for given URL
|
||||||
const [ipAddress, setIpAddress] = useMotherHook({
|
const [ipAddress, setIpAddress] = useMotherHook({
|
||||||
|
|||||||
Reference in New Issue
Block a user