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,
|
RedisCacheModule,
|
||||||
ScheduleModule.forRoot(),
|
ScheduleModule.forRoot(),
|
||||||
ServeStaticModule.forRoot({
|
ServeStaticModule.forRoot({
|
||||||
exclude: ['/api*', '/sitemap.xml'],
|
exclude: ['/api/*wildcard', '/sitemap.xml'],
|
||||||
rootPath: join(__dirname, '..', 'client'),
|
rootPath: join(__dirname, '..', 'client'),
|
||||||
serveStaticOptions: {
|
serveStaticOptions: {
|
||||||
setHeaders: (res) => {
|
setHeaders: (res) => {
|
||||||
|
Reference in New Issue
Block a user