My site had 50+ handwritten HTML pages with the same header pasted into 51 files. I moved it to Astro in a day.
The one setting that kept every URL identical:
// astro.config.mjs
export default defineConfig({
build: { format: "preserve" }, // pricing.astro -> pricing.html
compressHTML: false,
});
Before going live, a parity script compared every page with production: titles, meta, canonical, JSON-LD, headings, body text, links, and images. It showed 0 differences, so I shipped.
Top comments (2)
Running a post-migration parity script for canonicals, JSON-LD, and internal links is such a smart safety net. On our own Astro static/edge build (Duskbloods Archive), locking
trailingSlash: 'always'plusinlineStylesheets: 'always'and filtering policy routes out of the sitemap kept every URL clean and eliminated render-blocking stylesheet requests from day one.Thanks! Good points, though only one of them fits this site:
Did inlining CSS make a noticeable difference to your LCP?