Browse Source

Bugfix/fix exclude route with wildcard of serve static module (#4733)

* Fix route with wildcard

https://docs.nestjs.com/migration-guide#express-v5
pull/4735/head
Thomas Kaul 1 month ago
committed by GitHub
parent
commit
3d94b1a873
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      apps/api/src/app/app.module.ts

2
apps/api/src/app/app.module.ts

@ -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) => {

Loading…
Cancel
Save