Skip to content

fix: disable minification for shttp bundles to improve debuggability#685

Merged
calclavia merged 1 commit intomainfrom
calclavia/cf-sourcemaps
Mar 1, 2026
Merged

fix: disable minification for shttp bundles to improve debuggability#685
calclavia merged 1 commit intomainfrom
calclavia/cf-sourcemaps

Conversation

@calclavia
Copy link
Contributor

What's added in this PR?

Disabled minification for shttp production bundles deployed as Cloudflare Workers. Deployed MCP servers now have readable code with proper variable names and formatting, making deployment errors easier to understand. Sourcemaps continue to be generated and uploaded.

What's the issues or discussion related to this PR?

When users deploy MCP servers, crashes during deployment verification showed obfuscated error messages because the code was minified. While the CLI generated and uploaded sourcemaps to Cloudflare, CF Workers for Platforms does not automatically apply sourcemaps to error messages in deployment logs. Since this is server-side code that nobody reads, minification provided no benefit—it only made debugging harder.

Deployed MCP servers now have readable code with proper variable names
and formatting, making deployment errors easier to understand.
Sourcemaps continue to be generated and uploaded.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copy link
Contributor Author

calclavia commented Mar 1, 2026

Merge activity

  • Mar 1, 8:12 AM UTC: A user started a stack merge that includes this pull request via Graphite.
  • Mar 1, 8:12 AM UTC: @calclavia merged this pull request with Graphite.

@calclavia calclavia merged commit 64de162 into main Mar 1, 2026
4 checks passed
@calclavia calclavia deleted the calclavia/cf-sourcemaps branch March 1, 2026 08:12
@smithery-chore-bot smithery-chore-bot bot mentioned this pull request Mar 1, 2026
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