Attempt to fix build issues in Docker
This commit is contained in:
parent
c5c30cf8c3
commit
be821528cb
3 changed files with 11 additions and 6 deletions
5
index.js
5
index.js
|
|
@ -58,6 +58,11 @@ if (process.argv.includes('-d')) {
|
|||
process.exit(0);
|
||||
}
|
||||
|
||||
// Disable console.log in production to suppress output in daemon mode
|
||||
if (process.env.NODE_ENV === 'production') {
|
||||
console.log = () => {};
|
||||
}
|
||||
|
||||
const pluginRegistry = [];
|
||||
export function registerPlugin(pluginName, handler) {
|
||||
pluginRegistry.push({ name: pluginName, handler });
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue