Skip to content

Commit

Permalink
fix: handle prerendered ppr rsc
Browse files Browse the repository at this point in the history
  • Loading branch information
pieh committed Jun 13, 2024
1 parent 1974965 commit f8b8d9c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/build/content/prerendered.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,9 @@ const buildAppCacheValue = async (
return {
kind: 'APP_PAGE',
html,
rscData: await readFile(`${path}.rsc`, 'base64'),
rscData: await readFile(`${path}.rsc`, 'base64').catch(() =>
readFile(`${path}.prefetch.rsc`, 'base64'),
),
...meta,
}
}
Expand Down

0 comments on commit f8b8d9c

Please sign in to comment.