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

const target = "/api/store";
let idx = 0;
while ((idx = content.indexOf(target, idx)) !== -1) {
  console.log(`Found /api/store at index ${idx}:`);
  console.log(content.substring(idx - 100, idx + 800));
  idx += target.length;
}
