const { spawn } = require('child_process');

// Start Next.js dev server with explicit hostname
const next = spawn('next', ['dev', '-p', '3050', '-H', '0.0.0.0'], {
  stdio: 'inherit',
  shell: true,
  env: { ...process.env, HOSTNAME: '0.0.0.0' }
});

next.on('close', (code) => {
  process.exit(code);
});
