Skip to content

Commit 723372e

Browse files
committed
review fix
1 parent 55feb54 commit 723372e

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
@@ -440,7 +440,7 @@ export default class Cache {
440440
toInsert
441441
// We need to filter fetch cache key as they are not in the CDN
442442
.filter((t) => t.tag.startsWith("_N_T_/"))
443-
.map((t) => t.path),
443+
.map((t) => `/${t.path}`),
444444
),
445445
);
446446
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)