Skip to content

v1.21.0 — SvelteKit + Cloudflare Pages fixer

Latest

Choose a tag to compare

@dkdev24 dkdev24 released this 31 Oct 05:55
· 28 commits to main since this release

New fixer for SvelteKit (adapter-static) on Cloudflare Pages, including monorepos. enhance wires a zero-dependency postbuild script that edits only the build output: missing canonical link, homepage JSON-LD (WebSite, override with AGENT_READINESS_SCHEMA_TYPE), a hidden llms.txt pointer, .md mirrors, /404.md and llms.txt, each only when absent. Adds functions/_middleware.js for Accept: text/markdown negotiation at the Pages project root. Site source is never touched and existing files are never overwritten.

Local result on a real SvelteKit docs site: afdocs 85 → 95.

Also includes the 1.20.0 engines floor (Node >=22) that was not previously published to npm.