media-tracker icon indicating copy to clipboard operation
media-tracker copied to clipboard

Disable automatic launching of web browser when starting client

Open superbonaci opened this issue 3 years ago • 1 comments

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

superbonaci avatar Jul 30 '22 09:07 superbonaci

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 :)

superbonaci avatar Aug 13 '22 20:08 superbonaci

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.

michaelx avatar Sep 22 '22 19:09 michaelx