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

const targetStr = 'function estimateCreatedAt';
const idx = content.indexOf(targetStr);
if (idx !== -1) {
  console.log("Found estimateCreatedAt definition at:", idx);
  console.log(content.substring(idx, idx + 1500));
} else {
  console.log("Not found");
}
