xlang-ai / OpenAgents

[COLM 2024] OpenAgents: An Open Platform for Language Agents in the Wild
https://arxiv.org/abs/2310.10634
Apache License 2.0
3.93k stars 432 forks source link

How to change the port of the frontend to call the backend #103

Closed deeomnjobs closed 10 months ago

deeomnjobs commented 10 months ago

Since port 8000 is already taken in my own server, I deployed the backend on port 5093, but the frontend is still sending requests to port 8000. I was wondering where to change the request port for the frontend

go-laoji commented 10 months ago

https://github.com/xlang-ai/OpenAgents/blob/1a2091412a913a50a65d1bfba0ed33335d18d11f/frontend/utils/app/const.ts#L9-L10

you can set env NEXT_PUBLIC_BACKEND_ENDPOINT or change the line 10

deeomnjobs commented 10 months ago

thx