#!/usr/bin/env node

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

const next = spawn('npx', ['next', 'start', '--port=8181'], { cwd: '' });

next.stdout.on('data', (data) => {
  console.log(`stdout: ${data}`);
});

next.stderr.on('data', (data) => {
  console.error(`stderr: ${data}`);
});

next.on('close', (code) => {
  console.log(`child process exited with code ${code}`);
});
