// Smoke check: every LOCATION_PAGES/SERVICE_PAGES slug has a built page with valid JSON-LD, is in the sitemap, and links its subpages. import fs from "node:fs"; const win = { __R: (p) => "/" + p }; new Function("window", fs.readFileSync("services-data.js", "utf8"))(win); const sm = fs.readFileSync("sitemap.xml", "utf8"); for (const l of [...win.LOCATION_PAGES.map((l) => l.slug), ...win.SERVICE_PAGES.map((s) => "services/" + s.slug)]) { const html = fs.readFileSync(`${l}/index.html`, "utf8"); JSON.parse(html.match(/