Calling an API on my local machine from within a container only works at first load
Hey guys
I'm running a Nuxt app inside a Docker container that talks to my local machine Laravel API on
I've added these lines in my
Although The initial page load works, the subsequent link clicks fail with a 404 error as the browser send the requests to
I guess I need some sort of two-way mapping but I don't have a clue where to start looking.
localhost:8000. I've added these lines in my
docker-compose file to make the container see my localhost..envAlthough The initial page load works, the subsequent link clicks fail with a 404 error as the browser send the requests to
http://host.docker.internal:8000/api/some-api-endpoint and don't find it.I guess I need some sort of two-way mapping but I don't have a clue where to start looking.