Next.js: [Feature Request] View the app "On Your Network"

Created on 26 Mar 2020  路  2Comments  路  Source: vercel/next.js

View the app "On Your Network"

By default create-react-app make the app live on localhost as well as your network.
This would make it easier to test on mobile devices. Also the current way has the text mixing in with all the other details and becomes harder to find. I would be better to highlight somehow, maybe draw a box around it.

[ info ]  ready on http://localhost:3000

react

good first issue story

Most helpful comment

I understand it can be done manually but it's a user experience thing. I usually open the links by simply clicking on them while in the terminal, Having it right there makes it so I don't have to go though the extra steps.

All 2 comments

create-react-app doesn't do anything special. It just shows you the IP address of your laptop on your local network. It uses the address package to do that in a platform-agnostic way. Looks like you're on a mac so to get it you can probably just do:

ipconfig getifaddr en0

and you should be able to use it to access the next.js app that's running on your laptop from anywhere else on your LAN.

I understand it can be done manually but it's a user experience thing. I usually open the links by simply clicking on them while in the terminal, Having it right there makes it so I don't have to go though the extra steps.

Was this page helpful?
0 / 5 - 0 ratings