-
Notifications
You must be signed in to change notification settings - Fork 116
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
Avoid hardcoding the localhost
variable in the source.
#95
Comments
Adding some more context to this: The backend allows setting However, changing this env alone is not enough and requires modifying the hardcoded value as mentioned above. |
Yes ,if future visitors got errors like |
I'd argue this is not an enhancement, since it blocks other functionality. I.e. docker is meant to respect a port change, but it doesn't because this value is hardcoded. Also, it's required in order to get this running on Mac. Doesn't sound like an enhancement to me. |
The file
src/App/api/index.js
hardcodes a variableconst apiRoot = "http://localhost:5000/";
This is less than ideal because it causes problems if people don't have a standard setup. i.e. run on their docker server that is onto n their computer, run on a vps, etc....
Can we at least document the existence of this setting in the readme, or perhaps make it a docker config setting somehow, or just remove the variable?
The text was updated successfully, but these errors were encountered: