fix: gracefully handle Next.js static component fetch rendering when setup configs are completely empty
This commit is contained in:
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user