suna
suna copied to clipboard
How to change default port from 3000 to another (e.g., 3005)?
Hi! š Iām running Suna locally and Iād like to change the default port (currently 3000) to something else, like 3005, to avoid conflicts with other services on my machine.
I noticed that the port seems to be hardcoded in some parts of the code. Besides updating the docker-compose.yml, are there other places where I need to make changes?
Thanks in advance for your support! š
Go to suna/frontend/package.json and look for two commands under the script key. Specify the port that you want to run the front end through -p flag:
"scripts": {
"dev": "next dev -p 3005",
"start": "next start -p 3005",
},