Skip to content

Commit

Permalink
Fixing up the relative paths not working in production
Browse files Browse the repository at this point in the history
  • Loading branch information
sylviamclaughlin committed Sep 25, 2023
1 parent 3ce68e5 commit 48edc07
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions frontend/src/scenes/geolocate/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 48edc07

Please sign in to comment.