Prevent IHP RunDevServer from automatically opening a window or tab

49 Views Asked by At

Is there a way to start the server without it automatically opening a tab? Something similar to webpack serve --no-open

2

There are 2 best solutions below

0
On BEST ANSWER

You can set the IHP_BROWSER environment variable to echo before running the dev server:

export IHP_BROWSER=echo
./start

This is described in the IHP recipes:

https://ihp.digitallyinduced.com/Guide/recipes.html#dont-autoopen-the-app-in-the-browser

0
On

Adding a little more to the accepted answer.

The answer can be found on the Recipes page in the Documentation along with other helpful best-practice solutions. Another solution is to append export IHP_BROWSER=echo to the local .envrc file.

// .envrc
PATH_add /nix/store/...
export IHP_BROWSER=echo