From e1d9b1304501270e7bdc95353456ee588d8df85e Mon Sep 17 00:00:00 2001 From: Alicia Sykes Date: Fri, 11 Aug 2023 22:51:23 +0100 Subject: [PATCH] Make API location configurable --- src/pages/Results.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/Results.tsx b/src/pages/Results.tsx index f025289..be6ee5f 100644 --- a/src/pages/Results.tsx +++ b/src/pages/Results.tsx @@ -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({