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?
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
falsein the gulpfule.js file.for more information refer to https://www.npmjs.com/package/lite-server