Trek_CN/server
Neil Soult 6a797a39ae fix(atlas): gzip-compress responses so large country GeoJSON loads behind reverse proxies (#1262)
The admin-0 country GeoJSON served at /api/addons/atlas/countries/geo is
~30 MB uncompressed. With no compression in the request pipeline the
transfer aborts (~8s, net::ERR_FAILED despite a 200) behind reverse
proxies / Cloudflare Tunnel, so the Atlas map never colours visited
countries. LAN is unaffected.

Add the `compression` middleware to the shared applyGlobalMiddleware
pipeline (gzip brings ~30 MB down to ~4 MB). text/event-stream is
excluded so the /mcp StreamableHTTP (SSE) transport is not buffered.

Adds BOOT-008 asserting content-encoding: gzip on the geo endpoint.

Fixes #1254

Co-authored-by: pai <pai@stabpablo.eu>
2026-06-23 21:23:39 +02:00
..
assets v3.1.1 bug fixes (#1228) 2026-06-18 20:13:30 +02:00
public v3.0.16 — bug fixes (#964) 2026-05-06 21:38:40 +02:00
scripts v3.1.1 bug fixes (#1228) 2026-06-18 20:13:30 +02:00
src fix(atlas): gzip-compress responses so large country GeoJSON loads behind reverse proxies (#1262) 2026-06-23 21:23:39 +02:00
tests fix(atlas): gzip-compress responses so large country GeoJSON loads behind reverse proxies (#1262) 2026-06-23 21:23:39 +02:00
.env.example v3.1.1 bug fixes (#1228) 2026-06-18 20:13:30 +02:00
.gitignore Release 3.1.0 (#1185) 2026-06-16 22:22:45 +02:00
.prettierrc Release 3.1.0 (#1185) 2026-06-16 22:22:45 +02:00
eslint.config.mjs Release 3.1.0 (#1185) 2026-06-16 22:22:45 +02:00
package.json fix(atlas): gzip-compress responses so large country GeoJSON loads behind reverse proxies (#1262) 2026-06-23 21:23:39 +02:00
reset-admin.js Stabilize core: better-sqlite3, versioned migrations, graceful shutdown 2026-03-22 17:52:24 +01:00
tsconfig.build.json Release 3.1.0 (#1185) 2026-06-16 22:22:45 +02:00
tsconfig.json Release 3.1.0 (#1185) 2026-06-16 22:22:45 +02:00
vitest.config.ts Release 3.1.0 (#1185) 2026-06-16 22:22:45 +02:00