0

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

technoY2K
  • 2,442
  • 1
  • 24
  • 38

2 Answers2

2

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

1

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
technoY2K
  • 2,442
  • 1
  • 24
  • 38