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

// Find sync-hotspot-users in server.cjs and print lines around it
const keyword = "/api/mikrotik/sync-hotspot-users";
const idx = content.indexOf(keyword);
if (idx !== -1) {
  console.log(content.substring(idx - 100, idx + 2000));
} else {
  console.log("Not found in server.cjs");
}
