const fs = require('fs');
const content = fs.readFileSync('dist/server.cjs', 'utf8');

// Find all route names or function definitions in server.cjs
const lines = content.split('\n');
console.log('Total lines in dist/server.cjs:', lines.length);
lines.forEach((line, i) => {
  if (line.includes('app.get') || line.includes('app.post') || line.includes('function ')) {
    console.log(`Line ${i + 1}: ${line}`);
  }
});
