fix: gracefully handle Next.js static component fetch rendering when setup configs are completely empty

This commit is contained in:
ralksta
2026-03-08 21:38:44 +01:00
parent 89bb7c0038
commit b9993bd29e
5 changed files with 19 additions and 17 deletions

View File

@@ -41,6 +41,11 @@ function HeroNavLinks({
export default async function HomePage() {
const config = getConfig();
if (config.needsSetup) {
return null;
}
const [subpages, albums] = await Promise.all([
immich.getSubpages(),
immich.getStandaloneAlbums(),