Make API location configurable

This commit is contained in:
Alicia Sykes 2023-08-11 22:51:23 +01:00
parent c5d8cd1641
commit e1d9b13045

View File

@ -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({