Search code examples
ihp

Prevent IHP RunDevServer from automatically opening a window or tab


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


Solution

  • 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