File tree Expand file tree Collapse file tree 4 files changed +12
-1
lines changed Expand file tree Collapse file tree 4 files changed +12
-1
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ " @opennextjs/aws " : patch
3+ ---
4+
5+ Basic support for PPR
Original file line number Diff line number Diff line change @@ -237,6 +237,7 @@ export default class S3Cache {
237237 rscData : Buffer . from ( cacheData . rsc ) ,
238238 status : meta ?. status ,
239239 headers : meta ?. headers ,
240+ postponed : meta ?. postponed ,
240241 } ,
241242 } as CacheHandlerValue ;
242243 }
Original file line number Diff line number Diff line change @@ -494,8 +494,12 @@ async function createCacheAssets(options: BuildOptions) {
494494 ( ) => true ,
495495 ( filepath ) => {
496496 const ext = path . extname ( filepath ) ;
497- const newFilePath =
497+ let newFilePath =
498498 ext !== "" ? filepath . replace ( ext , ".cache" ) : `${ filepath } .cache` ;
499+ // Handle prefetch cache files for partial prerendering
500+ if ( newFilePath . endsWith ( ".prefetch.cache" ) ) {
501+ newFilePath = newFilePath . replace ( ".prefetch.cache" , ".cache" ) ;
502+ }
499503 switch ( ext ) {
500504 case ".meta" :
501505 case ".html" :
Original file line number Diff line number Diff line change @@ -73,4 +73,5 @@ export type Extension = "cache" | "fetch";
7373export interface Meta {
7474 status ?: number ;
7575 headers ?: Record < string , undefined | string | string [ ] > ;
76+ postponed ?: string ;
7677}
You can’t perform that action at this time.
0 commit comments