question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. Itย collects links to all the places you might be looking at while hunting down a tough bug.

And, if youโ€™re still stuck at the end, weโ€™re happy to hop on a call to see how we can help out.

open browser after app started

See original GitHub issue

Is there plan to add automatically open browser after app started? This feature is in create-react-app and would be nice to have that too, do you agree?

Nice example:

โ•ญโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ
โ”‚                                                    โ”‚
โ”‚   Storybook 5.3.18 started                         โ”‚
โ”‚   18 s for manager and 14 s for preview            โ”‚
โ”‚                                                    โ”‚
โ”‚    Local:            http://localhost:9001/        โ”‚
โ”‚    On your network:  http://192.168.0.213:9001/    โ”‚
โ”‚                                                    โ”‚
โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:22
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

42reactions
timneutkenscommented, May 25, 2020

Weโ€™re not planning to add automatically opening the browser at this point (keeping the CLI minimal and features contained).

10reactions
power-f-GODcommented, Jul 9, 2021

I think I prefer this way: https://github.com/vercel/next.js/discussions/13448#discussioncomment-527837

So, in your package.json, the dev script, just modify to something like this:

"dev": "open http://localhost:3000 && next dev"

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to open browser to localhost through npm scripts
"start": "open http://localhost:3000 && npm run build && npm run dev",. Works on macOS. You might need to refresh browser window after server...
Read more >
Auto launch browser on localhost after app start with ng serve
This is a super quick tutorial to show how to automatically open the browser on localhost after starting an app with Angular CLI....
Read more >
How to Automatically Open a Browser when Computer Starts
Add functionality to your computer and automatically open a browser when the computer starts. Open Google, YouTube, Amazon, Ebay or Reddit orย ...
Read more >
How to make any browser or program open automatically on ...
If you want any browser or any program to open automatically when you turn on your computer, the easiest way is, you must...
Read more >
Make Chrome your default browser - Computer
To exit, close the settings window. ... Open your default apps: Original version: Click System and then Default apps. Creators Update: Click Apps...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found