Skip to content

High performance self-hosted photo and video management solution.

chore: fix ssr in dev (#5637)

Jason Rasmussen81603fddc806
diff --git a/server/src/immich/app.service.ts b/server/src/immich/app.service.ts
index 4f6a47a482..9a6a5441eb 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 (