const child = spawn(
['bun', path.join(__dirname, '..', 'workers', 'buyToken.worker.ts')],
{
stdout: 'inherit',
stderr: 'inherit',
ipc: (childMsg) => {
if (childMsg.status === 'error') {
console.error(childMsg.message);
}
if (childMsg.status === 'success') {
console.log(childMsg.message);
}
},
}
);
child.send(message);
this seems to hang up on production?