https://linen.dev logo
#dev-frontend
Title
# 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/>"
the images that we generate expect localhost now for the API. I tried to install it on a public instance
and obviously it doesn't work
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
with the possibility of overriding it with the env variable
👍 1
2 Views