Bugfix/fix exclude route with wildcard of serve static module (#4733)
* Fix route with wildcard https://docs.nestjs.com/migration-guide#express-v5
This commit is contained in:
@@ -101,7 +101,7 @@ import { UserModule } from './user/user.module';
|
||||
RedisCacheModule,
|
||||
ScheduleModule.forRoot(),
|
||||
ServeStaticModule.forRoot({
|
||||
exclude: ['/api*', '/sitemap.xml'],
|
||||
exclude: ['/api/*wildcard', '/sitemap.xml'],
|
||||
rootPath: join(__dirname, '..', 'client'),
|
||||
serveStaticOptions: {
|
||||
setHeaders: (res) => {
|
||||
|
Reference in New Issue
Block a user