Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Support for ZenStackMiddleware in NestJS Fastify Projects #2048

Open
LeUKi opened this issue Mar 19, 2025 · 0 comments
Open

Comments

@LeUKi
Copy link

LeUKi commented Mar 19, 2025

Is your feature request related to a problem? Please describe.
Yes. ZenStackMiddleware currently only supports Express.js, but I am using NestJS with Fastify due to its superior performance benefits. The existing @zenstackhq/server/express middleware cannot be directly integrated into a NestJS Fastify project. Attempts to adapt parameters or simulate Express behavior (e.g., modifying MiddlewareOptions) have failed, likely due to incompatible request/response object structures or middleware execution flows.

Describe the solution you'd like
I request support for ZenStackMiddleware in NestJS Fastify projects .

Describe alternatives you've considered
Manual adapter layer : I attempted to wrap the Express middleware for Fastify by adapting req/res objects and parameters, but this failed due to deeper incompatibilities. Manual solutions are error-prone and require ongoing maintenance.

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

No branches or pull requests

1 participant