You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The middleware in express way not work well, it has other aproach. And for that, I need to make some custom createMiddlewareFactory, because the path of middlewares already contains here the setGlobalPrefix and i need it to compare path
createMiddlewareFactory(requestMethod) {
retrun (...args) => {
// some magic but path is /api/test and not /test
this.middlewares.push(args)
}
}
Is there an existing issue for this?
Current behavior
In nest-application
await this.httpAdapter?.init();
no options is passed from nest app to adapterMinimum reproduction code
https://github.com/nestjs/nest
Steps to reproduce
No response
Expected behavior
To pass to adapter
this.config
and in adapter will be able to call
this.config.getGlobalPrefix();
Package
@nestjs/common
@nestjs/core
@nestjs/microservices
@nestjs/platform-express
@nestjs/platform-fastify
@nestjs/platform-socket.io
@nestjs/platform-ws
@nestjs/testing
@nestjs/websockets
Other package
No response
NestJS version
latest
Packages versions
latest
Node.js version
20
In which operating systems have you tested?
Other
No response
The text was updated successfully, but these errors were encountered: