Some checks failed
farmcontrol/farmcontrol-server/pipeline/head There was a failure building this commit
Replace the previous headless mode implementation in headless.js with a streamlined init function in index.js that accepts options. This change improves modularity and error handling during initialization. The logger setup and socket client connection have been removed from headless.js, centralizing the logic in index.js.
7 lines
131 B
JavaScript
7 lines
131 B
JavaScript
import { init } from "./index.js";
|
|
|
|
init({ headless: true }).catch((err) => {
|
|
console.error(err.message);
|
|
process.exit(1);
|
|
});
|