Skip to content

Commit 12badfa

Browse files
committed
fix: added explicit array check
1 parent 25dbd87 commit 12badfa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/nextjs/src/client/routing/isrRoutingTracing.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ function isIsrSsgRoute(pathname: string): boolean {
2626
manifest = manifestData;
2727
}
2828

29-
if (!manifest.isrRoutes || manifest.isrRoutes.length === 0) {
29+
if (!manifest.isrRoutes || !Array.isArray(manifest.isrRoutes) || manifest.isrRoutes.length === 0) {
3030
return false;
3131
}
3232

0 commit comments

Comments
 (0)