Webbrowser preview change port

I have question how can i setup port for preview for my react app

This is for localhost:4000 but my app runs on 5173 how can i change this port ?

0
3 comments

Hello,

Please refer to the Vite documentation: Server Options: server.port

0

ok i see now it only shows html file but is there a possibility to see react app in this web preview ?

0

Hello,

Preview for React is currently not implemented. Please vote for this feature in our tracker to indicate additional interest: WEB-50302 React component preview (a la Jetpack Compose). 

Meanwhile, you can try using a 3rd party plugin Preview.js.

0

Please sign in to leave a comment.