Skip to content

fix: the world map's countries show again on community home pages - #942

Merged
sickerine merged 1 commit into
mainfrom
fix/world-map-double-gzip
Nov 25, 2026
Merged

sickerine merged 1 commit into
mainfrom
fix/world-map-double-gzip

Conversation

@sickerine

Copy link
Copy Markdown
Collaborator

The community home page's two maps (behind the hero, and By country in Explore the data) showed no countries on every live community.

/maps/world.svg gzipped its own body and set Content-Encoding: gzip. Since Next 16.4, sendResponse drops a route's Content-Encoding header and Next's compression gzips the body again, so the file went out gzipped twice under one header. Browsers undid one layer and got gzip bytes instead of an SVG.

The route now returns plain SVG and lets Next compress it.

Checked:

  • 14 of 15 live communities served the file gzipped twice. AER, still on an older build, served it once.
  • Locally with next dev on this branch, a gzip request gets one gzip layer that decodes to <svg …>, and a plain request gets the SVG.
  • tsc --noEmit and the fallow gate pass.

Next 16.4 drops a route's Content-Encoding header and compresses the
body itself, so the route's own gzip became a second layer. Browsers
undid one layer, got gzip bytes instead of an SVG, and both home page
maps showed no countries.
@coderabbitai

coderabbitai Bot commented Nov 25, 2026

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 6a3ed9f0-1738-4d0f-9f37-01269e65d299
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-25T11:46:25.973607Z 844598b PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@sickerine
sickerine merged commit e914d87 into main Nov 25, 2026
7 checks passed
@sickerine
sickerine deleted the fix/world-map-double-gzip branch November 25, 2026 12:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant