const fs = require('fs');

if (fs.existsSync('dist/server.cjs')) {
  const content = fs.readFileSync('dist/server.cjs', 'utf8');
  let idx = 0;
  while ((idx = content.toLowerCase().indexOf('simulasi', idx)) !== -1) {
    console.log(`Found 'simulasi' in dist/server.cjs at index ${idx}`);
    console.log(content.substring(idx - 50, idx + 100));
    idx += 8;
  }
}
