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

Configuration problem breaks dev environment #157

Open
2 of 3 tasks
Miguel-Alves opened this issue Feb 25, 2021 · 1 comment · May be fixed by #158
Open
2 of 3 tasks

Configuration problem breaks dev environment #157

Miguel-Alves opened this issue Feb 25, 2021 · 1 comment · May be fixed by #158
Assignees
Labels
bug Something isn't working frontend

Comments

@Miguel-Alves
Copy link
Collaborator

Miguel-Alves commented Feb 25, 2021

When running front-end dev environment we've faced a problem that is related to the configuration the project established as standard. This error happens specifically on file url_routes.js when trying to import the variable REACT_APP_URL_API.

This variable is mentioned on project's README file, to be set on the docker-compose.yml file according to the server where the API is running.

But, even when setting the correct server, all the requisitions made to the API are made to a broken URL.
This error happens here:

image
FILE: url_routes.js

This usage of the variable brings the adress set, but unites it with an "undefined" word before adding the rest of the path to the API. So, its breaks all the callings to the API.

Although this is a bug that happens when using the dev environment, it does not happen when using docker.

Tasks

  • Fix the API calling adress without breaking the docker use of it;

Acceptance criteria

  • Dev environment can communicate with the API;
  • Front-end docker continues to work correctly;
@Miguel-Alves
Copy link
Collaborator Author

So we(@AmandaMuniz) corrected this by changing the way we state the API adress;

image

By doing so, we did not break the docker behaviour and corrected the communication with the API on dev environment;.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working frontend
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants