michaelx/media-tracker

Disable automatic launching of web browser when starting client

superbonaci opened this issue · 2 comments

Each time I run npm start on client folder, it launches my default web browser. Request patch to be able to configure this.

Comment the line media-tracker/client/node_modules/react-dev-utils/openBrowser.js:108 with // in front of the line:

// open(url, options).catch(() => {}); // Prevent `unhandledRejection` error.

Web browser doesn't launch anymore :)

There is a browser env that can be used to achieve this. See https://create-react-app.dev/docs/advanced-configuration/. That way you don’t have to touch any packages.