When I pull this frontend package as container ,It seems access the backend API address http://localhost:7437 ,I tried to change the container Environment NEXT_PUBLIC_API_URI to the other Address , makes the frontend remote accessed. but the frontend container still access to http://localhost:7437
Hey, I had the same problem, I'm not sure what the long term fix is, but the short term fix is set that variable in .env.local and build the docker container image locally, at least that's what worked for me.
Description
When I pull this frontend package as container ,It seems access the backend API address
http://localhost:7437
,I tried to change the container EnvironmentNEXT_PUBLIC_API_URI
to the other Address , makes the frontend remote accessed. but the frontend container still access tohttp://localhost:7437
Steps to Reproduce the Bug
git clone https://github.com/Josh-XT/Agent-LLM
.cd Agent-LLM/
sudo docker-compose up -d
to run containeragent-llm_frontend_1
EnvNEXT_PUBLIC_API_URI
by managent service such as portainer.http:{ip}:3000
,and open the development tool to check.Expected Behavior
can access the backend as local do.
Actual Behavior
shows network error,and the frontend still access
http://localhost:7437
Additional Context / Screenshots
No response
Operating System
Python Version
Environment Type - Connection
Environment Type - Container
Acknowledgements