Skip to content

Add gzip compression middleware to API#409

Open
Antonod1988 wants to merge 1 commit into
Smartdevs17:mainfrom
Antonod1988:codex/gzip-compression-70
Open

Add gzip compression middleware to API#409
Antonod1988 wants to merge 1 commit into
Smartdevs17:mainfrom
Antonod1988:codex/gzip-compression-70

Conversation

@Antonod1988
Copy link
Copy Markdown

Summary

  • add Express compression middleware before API routes
  • add compression and TypeScript types to the API workspace
  • cover gzip negotiation with a Supertest check against /api/openapi.json

Closes #70.

Tests

  • npm --workspace api test -- --runTestsByPath src/tests/compression.test.ts --coverage=false --runInBand --forceExit
  • npx eslint src/app.ts src/tests/compression.test.ts (passes with existing warning: app.ts has unused logger)

Note: npm --workspace api run typecheck currently fails on existing controller errors where next is referenced but not defined; this change does not touch those files.

@vercel
Copy link
Copy Markdown

vercel Bot commented May 26, 2026

@Antonod1988 is attempting to deploy a commit to the smartdevs17's projects Team on Vercel.

A member of the Team first needs to authorize it.

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.

Feature: Add API response compression with gzip

1 participant