Skip to content

Commit

Permalink
sample: update 24-serve-static sample
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilmysliwiec committed Jan 20, 2025
1 parent 26e70ba commit d03955d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sample/24-serve-static/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"dependencies": {
"@nestjs/common": "11.0.2",
"@nestjs/core": "11.0.2",
"@nestjs/serve-static": "4.0.2",
"@nestjs/serve-static": "5.0.1",
"@nestjs/platform-express": "11.0.2",
"class-transformer": "0.5.1",
"class-validator": "0.14.1",
Expand Down
5 changes: 4 additions & 1 deletion sample/24-serve-static/src/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@ import { AppController } from './app.controller';
imports: [
ServeStaticModule.forRoot({
rootPath: join(__dirname, '..', 'client'),
exclude: ['/api/(.*)'],
exclude: ['/api/{*test}'],
serveStaticOptions: {
fallthrough: false,
},
}),
],
controllers: [AppController],
Expand Down

0 comments on commit d03955d

Please # to comment.