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

// Let's find occurrences of "tripay" or "payment" (case insensitive)
const regex = /tripay|payment/gi;
let match;
let count = 0;
while ((match = regex.exec(content)) !== null) {
  count++;
  console.log(`[${count}] Found near index ${match.index}:`);
  console.log(content.substring(match.index - 50, match.index + 100));
  console.log('----------------------------');
}
