Skip to content

Commit

Permalink
Fixing up the relative paths not working in production (#276)
Browse files Browse the repository at this point in the history
  • Loading branch information
sylviamclaughlin authored Sep 25, 2023
1 parent 3ce68e5 commit f7605a3
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 f7605a3

Please sign in to comment.