UniversityOfHelsinkiCS/grappa-frontend

Bug: API_PATH set to localhost in production environment

Closed this issue · 0 comments

Henri's commit 34719f4 messes up the API_PATH by setting it permanently to localhost:9876 inside grappaAPI.

Solution suggestion: set API_PATH to process.env.API_URL that is set inside webpack.config so it changes depending on the NODE_ENV environment: local/development or Heroku/production.

Or

It is set permanently to tktl-grappa.herokuapp.com