Join Slack
Powered by
Hey artem, I notice that src/config you're hardcod...
# dev-frontend
m
Michel
09/10/2020, 11:52 PM
Hey artem, I notice that src/config you're hardcoding the api to be
apiUrl: "<http://localhost:8001/api/v1/>"
Michel
09/10/2020, 11:58 PM
the images that we generate expect localhost now for the API. I tried to install it on a public instance
Michel
09/10/2020, 11:58 PM
and obviously it doesn't work
Michel
09/10/2020, 11:59 PM
Is there any chance we can make the API to default to be on the same domain (but 8001 port) ?
a
Artem Astapenko
09/11/2020, 12:49 AM
Do you mean that instead of local host you want to use current domain used? So if it’s hosted on
domain.com
then API is on
domain.com:8001/api
right?
m
Michel
09/11/2020, 1:12 AM
yes
Michel
09/11/2020, 1:13 AM
with the possibility of overriding it with the env variable
👍 1
2
Views
Open in Slack
Previous
Next