docs: upgrade docs site to Astro 6 and update Node.js prerequisites (#244)

Upgrades the docs site from Astro 5/Starlight 0.37 to Astro 6/Starlight 0.38.
Adds Cloudflare adapter for deployment. Updates Node.js prerequisites
across all docs to match Astro 6's requirement of v22.12.0+.
Bumps catalog versions for @astrojs/cloudflare and wrangler.
This commit is contained in:
Matt Kane
2026-04-04 19:59:00 +01:00
committed by GitHub
parent 9269759674
commit 3674d4857a
8 changed files with 590 additions and 458 deletions

21
docs/wrangler.jsonc Normal file
View File

@@ -0,0 +1,21 @@
{
"$schema": "node_modules/wrangler/config-schema.json",
"compatibility_date": "2026-03-01",
"routes": [
{
"pattern": "docs.emdashcms.com",
"custom_domain": true,
"zone_name": "emdashcms.com",
},
],
"compatibility_flags": ["global_fetch_strictly_public", "nodejs_compat"],
"name": "docs",
"main": "@astrojs/cloudflare/entrypoints/server",
"assets": {
"directory": "./dist",
"binding": "ASSETS",
},
"observability": {
"enabled": true,
},
}