Skip to content

Commit a724b19

Browse files
committed
Revert "update UI"
This reverts commit 114b445.
1 parent 003fb5e commit a724b19

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

apps/api/src/app.module.ts

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,15 @@ import { TestSlotModule } from './test-slot/test-slot.module';
1818

1919
@Module({
2020
imports: [
21+
ServeStaticModule.forRoot({
22+
rootPath: join(__dirname, '..', '..', '..', 'web', 'dist', 'assets'),
23+
serveRoot: '/assets',
24+
exclude: ['/api/(.*)'],
25+
}),
26+
2127
ServeStaticModule.forRoot({
2228
rootPath: join(__dirname, '..', '..', '..', 'web', 'dist'),
23-
serveRoot: '/',
2429
exclude: ['/api/(.*)'],
25-
serveStaticOptions: {
26-
setHeaders: (res, path) => {
27-
if (path.endsWith('.css')) res.setHeader('Content-Type', 'text/css');
28-
if (path.endsWith('.js'))
29-
res.setHeader('Content-Type', 'application/javascript');
30-
},
31-
},
3230
}),
3331
LoggerModule,
3432
InternModule,

0 commit comments

Comments
 (0)