const { spawn } = require('child_process');
const child = spawn('npx.cmd', ['tsx', 'src/app.ts'], {
  cwd: __dirname,
  stdio: 'inherit',
  detached: false
});
child.on('error', (err) => console.error('Failed to start server:', err));
console.log('Server process started, PID:', child.pid);
setTimeout(() => process.exit(0), 1000);
