This commit is contained in:
vastxie
2024-07-31 14:12:56 +08:00
parent dd0e1dafd5
commit c831009379
366 changed files with 1881 additions and 1540 deletions

12
dist/app.module.js vendored
View File

@@ -50,9 +50,17 @@ AppModule = __decorate([
database_module_1.DatabaseModule,
serve_static_1.ServeStaticModule.forRoot({
rootPath: (0, path_1.join)(__dirname, '..', 'public/admin'),
serveRoot: '/admin',
serveRoot: process.env.ADMIN_SERVE_ROOT || '/admin',
}, {
rootPath: (0, path_1.join)(__dirname, '..', 'public'),
rootPath: (0, path_1.join)(__dirname, '..', 'public/file'),
serveRoot: '/file',
serveStaticOptions: {
setHeaders: (res, path, stat) => {
res.set('Access-Control-Allow-Origin', '*');
},
},
}, {
rootPath: (0, path_1.join)(__dirname, '..', 'public/chat'),
serveRoot: '/',
}),
user_module_1.UserModule,