How to resolve Next.js SSR Docker container to communicate with nginx from host machine?
I’ve got an API (Laravel) and a UI (Next.js SSR) being served via nginx using Docker. From the client side everything is working as intended, I’m able to hit the pages and call the API without issues. However, when I try leveraging the server side aspect of Next.js for data fetching it fails.
nginx reverse proxy with laravel api and react
I’m developing an application with Laravel as API and separately NextJS, apart from that I’m using docker and nginx. I created a nginx config and can access the UI but I can’t access the API endpoints in Laravel.