Skip to content

Commit 4db9253

Browse files
committed
review fix
1 parent a3538ce commit 4db9253

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/open-next/src/adapters/cache.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@ export default class S3Cache {
461461
toInsert
462462
// We need to filter fetch cache key as they are not in the CDN
463463
.filter((t) => t.tag.startsWith("_N_T_/"))
464-
.map((t) => t.path),
464+
.map((t) => `/${t.path}`),
465465
),
466466
);
467467
if (uniquePaths.length > 0) {

packages/open-next/src/overrides/cdnInvalidation/cloudfront.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export default {
1414
? [`${path}`, `${path}?_rsc=*`]
1515
: [
1616
`${path}`,
17-
`_next/data/${process.env.BUILD_ID}${path === "/" ? "/index" : path}.json*`,
17+
`_next/data/${process.env.NEXT_BUILD_ID}${path === "/" ? "/index" : path}.json*`,
1818
],
1919
);
2020
await cloudfront.send(

0 commit comments

Comments
 (0)