mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-12-22 19:11:32 +03:00
fix(server): should not enable experimental mobile version in selfhost (#8840)
This commit is contained in:
parent
1f71e87460
commit
84cfcb193f
@ -147,9 +147,11 @@ export class SelfhostModule implements OnModuleInit {
|
|||||||
|
|
||||||
// fallback all unknown routes
|
// fallback all unknown routes
|
||||||
app.get([basePath, basePath + '/*'], this.check.use, (req, res) => {
|
app.get([basePath, basePath + '/*'], this.check.use, (req, res) => {
|
||||||
const mobile = isMobile({
|
const mobile =
|
||||||
ua: req.headers['user-agent'] ?? undefined,
|
this.config.AFFINE_ENV === 'dev' &&
|
||||||
});
|
isMobile({
|
||||||
|
ua: req.headers['user-agent'] ?? undefined,
|
||||||
|
});
|
||||||
|
|
||||||
return res.sendFile(
|
return res.sendFile(
|
||||||
join(
|
join(
|
||||||
|
Loading…
Reference in New Issue
Block a user