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 14, 2024
1 parent 25ed0e4 commit c60ac69
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 c60ac69

Please sign in to comment.