mirror of
https://github.com/immich-app/immich.git
synced 2025-05-31 12:15:47 -04:00
chore: fix ssr in dev (#5637)
This commit is contained in:
parent
ed4358741e
commit
81603fddc8
@ -61,7 +61,12 @@ export class AppService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ssr(excludePaths: string[]) {
|
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) => {
|
return async (req: Request, res: Response, next: NextFunction) => {
|
||||||
if (
|
if (
|
||||||
|
Loading…
x
Reference in New Issue
Block a user