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 a3538ce commit 4db9253Copy full SHA for 4db9253
packages/open-next/src/adapters/cache.ts
@@ -461,7 +461,7 @@ export default class S3Cache {
461
toInsert
462
// We need to filter fetch cache key as they are not in the CDN
463
.filter((t) => t.tag.startsWith("_N_T_/"))
464
- .map((t) => t.path),
+ .map((t) => `/${t.path}`),
465
),
466
);
467
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