import { DcRouter } from '../ts/index.js'; const devRouter = new DcRouter({ // Configure services as needed for development // OpsServer always starts on port 3000 // Example: Add SmartProxy routes // smartProxyConfig: { // routes: [...] // }, // Example: Add email configuration // emailConfig: { // ports: [2525], // hostname: 'localhost', // domains: [], // routes: [] // }, }); console.log('Starting DcRouter in development mode...'); await devRouter.start(); // Graceful shutdown handlers const shutdown = async () => { console.log('\nShutting down...'); await devRouter.stop(); process.exit(0); }; process.on('SIGINT', shutdown); process.on('SIGTERM', shutdown); console.log('DcRouter dev server running. Press Ctrl+C to stop.');