The documentation for the use of BROWSER and BROWSER_ARGS may benefits from some example.
For example, when I run npm run start in VSCode with Remote SSH plugin on a remote systems, a browser window opens on my local PC (via port 3000 proxy set by VSCode) by default.
The homepage in package.json is set as follows.
However, when the window opens, the trailing forward slash is not there. This results in app not being loaded.
http://localhost:3000/app
I have to manually, add /, i.e. http://localhost:3000/app/.
Some questions:
- Does CRA triggers the opening of the window?
- How do I manipulate
BROWSER and BROWSER_ARGS such that the browser opens in http://localhost:3000/app?
Tried setting the following, but they it no effect. Opened local Chrome. I suspect VSCode takes direction from CRA.
BROWSER=firefox
BROWSER_ARGS="--incognito"
The documentation for the use of
BROWSERandBROWSER_ARGSmay benefits from some example.For example, when I run
npm run startin VSCode with Remote SSH plugin on a remote systems, a browser window opens on my local PC (via port 3000 proxy set by VSCode) by default.The
homepageinpackage.jsonis set as follows.However, when the window opens, the trailing forward slash is not there. This results in app not being loaded.
I have to manually, add
/, i.e.http://localhost:3000/app/.Some questions:
BROWSERandBROWSER_ARGSsuch that the browser opens inhttp://localhost:3000/app?Tried setting the following, but they it no effect. Opened local Chrome. I suspect VSCode takes direction from CRA.