Skip to content

Commit 77451aa

Browse files
committed
changeset & review
1 parent 890df1d commit 77451aa

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.changeset/khaki-rice-applaud.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@opennextjs/aws": patch
3+
---
4+
5+
fix fetch and unstable_cache not working for ISR requests

packages/tests-unit/tests/build/patch/patchFetchCacheISR.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ else {
3939
}
4040
`;
4141

42-
const patchFetchCacheCodeunMinified = `
42+
const patchFetchCacheCodeUnMinified = `
4343
const entry = workStore.isOnDemandRevalidate ? null : await incrementalCache.get(cacheKey, {
4444
kind: _responsecache.IncrementalCacheKind.FETCH,
4545
revalidate: finalRevalidate,
@@ -99,7 +99,7 @@ describe("patchFetchCacheISR", () => {
9999
describe("Next 15", () => {
100100
test("on unminified code", async () => {
101101
expect(
102-
patchCode(patchFetchCacheCodeunMinified, fetchRule),
102+
patchCode(patchFetchCacheCodeUnMinified, fetchRule),
103103
).toMatchInlineSnapshot(`
104104
"const entry = (workStore.isOnDemandRevalidate && !globalThis.__openNextAls?.getStore()?.isISRRevalidation) ? null : await incrementalCache.get(cacheKey, {
105105
kind: _responsecache.IncrementalCacheKind.FETCH,

0 commit comments

Comments
 (0)