chore(server): bump nestjs and express (#11259)

This commit is contained in:
forehalo
2025-03-28 14:00:18 +00:00
parent efab5d4270
commit 1b93d3d8d2
4 changed files with 417 additions and 314 deletions

View File

@@ -60,7 +60,7 @@ export class DocRendererController {
}
@Public()
@Get('/*')
@Get('/*path')
async render(@Req() req: Request, @Res() res: Response) {
const assets: HtmlAssets =
env.namespaces.canary &&

View File

@@ -62,7 +62,7 @@ export class StaticFilesResolver implements OnModuleInit {
// fallback all unknown routes
app.get(
[basePath + '/admin', basePath + '/admin/*'],
[basePath + '/admin', basePath + '/admin/*path'],
this.check.use,
(_req, res) => {
res.sendFile(
@@ -101,11 +101,13 @@ export class StaticFilesResolver implements OnModuleInit {
redirect: false,
index: false,
fallthrough: true,
immutable: true,
dotfiles: 'ignore',
})
);
// fallback all unknown routes
app.get([basePath, basePath + '/*'], this.check.use, (req, res) => {
app.get([basePath, basePath + '/*path'], this.check.use, (req, res) => {
const mobile =
env.namespaces.canary &&
isMobile({