We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 55feb54 commit 723372eCopy full SHA for 723372e
packages/open-next/src/adapters/cache.ts
@@ -440,7 +440,7 @@ export default class Cache {
440
toInsert
441
// We need to filter fetch cache key as they are not in the CDN
442
.filter((t) => t.tag.startsWith("_N_T_/"))
443
- .map((t) => t.path),
+ .map((t) => `/${t.path}`),
444
),
445
);
446
if (uniquePaths.length > 0) {
packages/open-next/src/overrides/cdnInvalidation/cloudfront.ts
@@ -14,7 +14,7 @@ export default {
14
? [`${path}`, `${path}?_rsc=*`]
15
: [
16
`${path}`,
17
- `_next/data/${process.env.BUILD_ID}${path === "/" ? "/index" : path}.json*`,
+ `_next/data/${process.env.NEXT_BUILD_ID}${path === "/" ? "/index" : path}.json*`,
18
],
19
20
await cloudfront.send(
0 commit comments