Skip to content

Commit c60ac69

Browse files
committed
fix: handle prerendered ppr rsc
1 parent 25ed0e4 commit c60ac69

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/build/content/prerendered.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,9 @@ const buildAppCacheValue = async (
8585
return {
8686
kind: 'APP_PAGE',
8787
html,
88-
rscData: await readFile(`${path}.rsc`, 'base64'),
88+
rscData: await readFile(`${path}.rsc`, 'base64').catch(() =>
89+
readFile(`${path}.prefetch.rsc`, 'base64'),
90+
),
8991
...meta,
9092
}
9193
}

0 commit comments

Comments
 (0)