'I can not deploy nodeJs frontend to Heroku

I am running a nodejs frontend-only website that uses lite-server. as I am trying to deploy it with git in CLI, it shows me the error:

Did not detect a bs-config.json or bs-config.js override file. Using lite-server defaults...Couldn't open a browser (if you are using BrowserSync in a headless environment, you might want to set the open option to false)

Any thoughts on this?



Solution 1:[1]

You are seeing this error because you are running your project in the headless environment and lite-server uses BrowserSync and its default behavior is to open the browser. However, It allows for configuration overrides via a local bs-config.json or bs-config.js file in your project. You can prevent the browser from opening by setting option open to false in the gulpfule.js file.

open: false

for more information refer to https://www.npmjs.com/package/lite-server

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Epris Harris-Burnett