Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bassa UI is hardcoded to send the request to 'localhost:5000/api' #929

Open
agentmilindu opened this issue Aug 6, 2020 · 0 comments
Open

Comments

@agentmilindu
Copy link
Collaborator

Describe the bug
in the Bassa frontend code, it is hardcoded to send the requests to the 'localhost:5000/api'. This needs the Bassa API running on the user's localhost, which is very wrong.

To Reproduce
Steps to reproduce the behaviour:

  1. Run Bassa UI in production mode ( not in develop mode with Gulp. Run with the Docker. )
  2. Observe the API calls

Expected behaviour
API URL should be configurable in the frontend when the fronted Docker is run, like via an ENV variable passed to the Docker.
Then the frontend should be sending the API calls to this configured URL.

Screenshots
Screenshot from 2020-08-01 18-27-57

@agentmilindu agentmilindu changed the title Bassa Ui is hardcoded to send the request to 'localhost:5000/api' Bassa UI is hardcoded to send the request to 'localhost:5000/api' Aug 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant