Skip to content

documentation for the use of BROWSER and BROWSER_ARGS #12869

@greenpau

Description

@greenpau

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.

"homepage": "/app/",

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:

  1. Does CRA triggers the opening of the window?
  2. 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"

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions