From f7605a3f58ee5cbba9a2fd2e3722cb6ea9bcc54e Mon Sep 17 00:00:00 2001 From: Sylvia McLaughlin <85905333+sylviamclaughlin@users.noreply.github.com> Date: Mon, 25 Sep 2023 12:06:11 -0700 Subject: [PATCH] Fixing up the relative paths not working in production (#276) --- frontend/src/scenes/geolocate/index.jsx | 5 ----- 1 file changed, 5 deletions(-) diff --git a/frontend/src/scenes/geolocate/index.jsx b/frontend/src/scenes/geolocate/index.jsx index 70674c4a..ad851656 100644 --- a/frontend/src/scenes/geolocate/index.jsx +++ b/frontend/src/scenes/geolocate/index.jsx @@ -20,12 +20,7 @@ const geoUrl = // call the backend API to fetch the location data using the /geolocate endpoint // if we are in development we need to call the API using the full URL function fetchLocationData(inputValue) { - if (process.env.REACT_APP_ENVIRONMENT === 'dev') { return fetch(process.env.REACT_APP_API_URL + '/geolocate/' + inputValue); - } - else { - return fetch('/geolocate' + inputValue); - } } function Geolocate() {