By default, Create React App will open the default system browser. Specify abrowser to override this behavior, the app name is platform dependent. For example, Chrome isgoogle chromeon macOS,google-chrome on Linux andchromeon Windows.
For other browsers we don't know their specific app names, we can all pass in the app's full path.
Steps to set up:
1. Install dotenvusing the following command:
# with npm
npm install dotenv
# or with Yarn
yarn add dotenv
2. As early as possible in your application, require and configure dotenv.
require('dotenv').config()
3. Create a.env file in the root directory of your project. Add environment-specific variables on new lines in the form ofNAME=VALUE. Here we just need to add the BROWSER variable, we can pass in the value of the location of Edge Canary app in the computer like this:
BROWSER =C:\Program Files (x86)\Microsoft\Edge Beta\Application\msedge.exe
4. Run npm start,the react app will open in Edge Beta.