Merged
Conversation
Adds gzip compression to MCP JSON responses on both the production server and the dev server. ChatGPT was hitting a 10s timeout while serially prefetching resources because each ~630KB resource bundle was sent uncompressed; gzip cuts wire size by ~74% (4.2MB → 1.1MB for 4 resources). SSE streams are passed through uncompressed since they stream incrementally. Also removes two minor sources of bundle/CSS bloat in the template: - Drops `import 'sunpeak'` side-effect from index-resource.tsx (tree-shaking already handles the inspector exports it was meant to pull in). - Removes `@source "../../node_modules/sunpeak"` from template globals.css so production builds stop scanning inspector components for Tailwind classes resources never use.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
import 'sunpeak'side-effect from the template'sindex-resource.tsxand removes@source "../../node_modules/sunpeak"from templateglobals.cssso production resource bundles stop pulling in inspector code/CSS they never use.examples/to match the template changes; updates visual snapshot baselines.Test plan