diff --git a/server/src/immich/app.service.ts b/server/src/immich/app.service.ts index 4f6a47a482bf0..9a6a5441ebf59 100644 --- a/server/src/immich/app.service.ts +++ b/server/src/immich/app.service.ts @@ -61,7 +61,12 @@ export class AppService { } ssr(excludePaths: string[]) { - const index = readFileSync('/usr/src/app/www/index.html').toString(); + let index = ''; + try { + index = readFileSync('/usr/src/app/www/index.html').toString(); + } catch (error: Error | any) { + this.logger.warn('Unable to open `www/index.html, skipping SSR.'); + } return async (req: Request, res: Response, next: NextFunction) => { if (