mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 21:05:19 +00:00
chore(server): bump nestjs and express (#11259)
This commit is contained in:
@@ -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 &&
|
||||
|
||||
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user