Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Auto open browser when run dev nextjs

//  For a simple work-around on a *nix system just do this in package.json:

"scripts": {
  "dev": "npm run open-browser && next dev",
  "open-browser": "open http://localhost:3000",
}
Source by github.com #
 
PREVIOUS NEXT
Tagged: #Auto #open #browser #run #dev #nextjs
ADD COMMENT
Topic
Name
9+4 =