How to change default Preview port?

Clicking on the link opens a new tab with the webpage, but the integrated preview keeps listening on port 9000.

I want the port to be 5173. Can this be changed?

Edit:
I’m using docker compose to run my node app

Hi @XADE - we currently don’t support changing the preview port, but this is good feedback. Maybe we should!

Can you please take a moment and file this as a new feature request on https://idx.uservoice.com so that we can track the interest on this?

Thanks,
Kirupa

1 Like

Hi @XADE , can you share why you need a custom port? Seems like 5173 is a port used by Vite which you configure using the $PORT variable in dev.nix. files. I’d recommend taking a look at our react or vue templates to see how we can configure those vite templates.

Request already exists.