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 {
237
237
rscData : Buffer . from ( cacheData . rsc ) ,
238
238
status : meta ?. status ,
239
239
headers : meta ?. headers ,
240
+ postponed : meta ?. postponed ,
240
241
} ,
241
242
} as CacheHandlerValue ;
242
243
}
Original file line number Diff line number Diff line change @@ -494,8 +494,12 @@ async function createCacheAssets(options: BuildOptions) {
494
494
( ) => true ,
495
495
( filepath ) => {
496
496
const ext = path . extname ( filepath ) ;
497
- const newFilePath =
497
+ let newFilePath =
498
498
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
+ }
499
503
switch ( ext ) {
500
504
case ".meta" :
501
505
case ".html" :
Original file line number Diff line number Diff line change @@ -73,4 +73,5 @@ export type Extension = "cache" | "fetch";
73
73
export interface Meta {
74
74
status ?: number ;
75
75
headers ?: Record < string , undefined | string | string [ ] > ;
76
+ postponed ?: string ;
76
77
}
You can’t perform that action at this time.
0 commit comments