Skip to content

Commit 53a16e5

Browse files
committed
fix app_page / rscData prop
1 parent 2056c13 commit 53a16e5

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

packages/cache-handler/src/handlers/redis-strings.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,6 @@ export default function createHandler({
9191
},
9292
async set(key, cacheHandlerValue) {
9393
assertClientIsReady();
94-
9594
// XXX: NextJS 15 hack to get metadata files loading
9695
if (cacheHandlerValue.value?.kind === "ROUTE") {
9796
console.warn("The cache value kind is 'ROUTE'. This is not compatible with Next15, changing to 'APP_ROUTE'");

packages/cache-handler/src/instrumentation/register-initial-cache.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,9 +266,9 @@ export async function registerInitialCache(CacheHandler: CacheHandlerType, optio
266266
cachePath,
267267
{
268268
// @ts-expect-error
269-
kind: 'PAGE',
269+
kind: isAppRouter ? 'APP_PAGE' : "PAGE",
270270
html,
271-
pageData,
271+
[isAppRouter ? 'rscData' : 'pageData']: pageData,
272272
postponed: meta?.postponed,
273273
headers: meta?.headers,
274274
status: meta?.status,

0 commit comments

Comments
 (0)