Skip to content

feat: add response compression middleware to project templates#75

Merged
PAMulligan merged 1 commit intomainfrom
12-add-response-compression-middleware-to-project-templates
Apr 12, 2026
Merged

feat: add response compression middleware to project templates#75
PAMulligan merged 1 commit intomainfrom
12-add-response-compression-middleware-to-project-templates

Conversation

@PAMulligan
Copy link
Copy Markdown
Contributor

Summary

  • Added Hono's compress() middleware to the Node.js template in setup-project.sh for automatic gzip/brotli response compression
  • Added a comment to the Cloudflare Workers template explaining that compression is handled automatically at the edge
  • No additional dependencies needed — compress() is built into Hono

Test plan

  • bash -n scripts/setup-project.sh passes (script syntax valid)
  • Dry-run with --node completes successfully
  • Dry-run with --cloudflare completes successfully
  • CI passes (ShellCheck + syntax validation)

Closes #12

🤖 Generated with Claude Code

Add Hono's compress() middleware to the Node.js template in
setup-project.sh for automatic gzip/brotli compression of API responses.
Add a comment to the Cloudflare Workers template explaining that
compression is handled at the edge and no middleware is needed.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@PAMulligan PAMulligan linked an issue Apr 12, 2026 that may be closed by this pull request
4 tasks
@github-actions github-actions bot added the area: scripts Automation scripts label Apr 12, 2026
@PAMulligan PAMulligan self-assigned this Apr 12, 2026
@PAMulligan PAMulligan moved this from Todo to Done in PMDS Open Source Roadmap Apr 12, 2026
@PAMulligan PAMulligan merged commit 4329396 into main Apr 12, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: scripts Automation scripts

Projects

Development

Successfully merging this pull request may close these issues.

Add response compression middleware to project templates

1 participant