The compression middleware filter runs before route handlers, so the
res.getHeader('Content-Type') check in shouldSkipCompression is always
undefined at decision time. SSE exclusion relied entirely on the Accept
header, which non-standard clients (curl, fetch) may omit.
Add deterministic path-based exclusion for all known SSE routes so
compression is skipped regardless of client behavior. Also add a Caddy
reverse proxy example and a CDN double-compression warning to docs.
OpenChamber Docs Source
This package is the source-of-truth for OpenChamber public docs content.
Layout
content/docs/*.mdx- English docs pagessidebar.config.json- docs navigation structure for Starlight sidebarCONTRIBUTING.md- authoring guide for adding pages and sectionsDEPLOYMENT.md- release/manual packaging and sync trigger model
Local validation
Run from repo root:
bun run docs:validate
This validates:
- frontmatter (
title,description) exists for every MDX page - sidebar links resolve to existing MDX routes
Deployment model
This repo owns docs content.
Website rendering/deployment happens in openchamber-website (apps/docs).
Use .github/workflows/docs-source.yml to package docs source on release or manual trigger.