typescript
typescript copied to clipboard
[Bug]: Middleware not working when trying to get well-know configuration
Preflight Checklist
- [x] I could not find a solution in the documentation, the existing issues or discussions
- [x] I have joined the ZITADEL chat
Version
latest github commit
Describe the problem caused by this bug
When i tried to request this endpoint: http://localhost:3000/.well-known/openid-configuration.
This error appears: "Error: The edge runtime does not support Node.js 'zlib' module.
Learn More: https://nextjs.org/docs/messages/node-module-in-edge-runtime"
On an other setup i have made i had the same issue but with the module "http2". This error can't be bypassed.
To reproduce
Run the server with pnpm run dev and go to http://localhost:3000/.well-known/openid-configuration
Screenshots
Expected behavior
No error and same content as if the request was made directly to zitadel.
Relevant Configuration
No response
Additional Context
No response