/** * CRA serves one index.html for every route. A canonical in that shared file * would point every page at the homepage. After `react-scripts build`, write a * copy per route whose canonical href is that route's own absolute URL. */ const fs = require('fs'); const path = require('path'); const { ORIGIN, OG_IMAGE, PAGE_PATHS, h1ForPath, titleForPath, descriptionForPath } = require('../src/llm-fe/utils/canonicals'); const { relatedNavHtml } = require('../src/llm-fe/utils/internalLinks'); const { proseHtml } = require('../src/llm-fe/utils/pageProse'); const { jsonLdHtml } = require('../src/llm-fe/utils/structuredData'); const CANONICAL_RE = //i; const H1_RE = /