Skip to content

Commit 4d2af02

Browse files
committed
Versions bump
1 parent 53889b2 commit 4d2af02

File tree

3 files changed

+16
-12
lines changed

3 files changed

+16
-12
lines changed

packages/nextjs-cache-handler/package-lock.json

Lines changed: 7 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/nextjs-cache-handler/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"next",
1919
"redis"
2020
],
21-
"version": "2.1.1",
21+
"version": "2.1.2",
2222
"type": "module",
2323
"license": "MIT",
2424
"description": "Next.js cache handlers",
@@ -92,7 +92,7 @@
9292
"lru-cache": "11.2.2"
9393
},
9494
"devDependencies": {
95-
"@eslint/js": "^9.37.0",
95+
"@eslint/js": "^9.38.0",
9696
"@types/jest": "^30.0.0",
9797
"@types/node": "22.16.5",
9898
"eslint": "^8.57.1",
@@ -116,7 +116,7 @@
116116
"next15"
117117
],
118118
"optionalDependencies": {
119-
"@rollup/rollup-linux-x64-gnu": "^4.52.4"
119+
"@rollup/rollup-linux-x64-gnu": "^4.52.5"
120120
},
121121
"engines": {
122122
"node": ">=22.0.0"

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ type Router = "pages" | "app";
2525

2626
const PRERENDER_MANIFEST_VERSION = 4;
2727

28+
const DEFAULT_BUILD_DIR = ".next";
29+
2830
/**
2931
* Options for the `registerInitialCache` instrumentation.
3032
*/
@@ -95,7 +97,10 @@ export async function registerInitialCache(
9597
options: RegisterInitialCacheOptions = {},
9698
) {
9799
const debug = typeof process.env.NEXT_PRIVATE_DEBUG_CACHE !== "undefined";
98-
const nextJsPath = path.join(process.cwd(), options.buildDir ?? ".next");
100+
const nextJsPath = path.join(
101+
process.cwd(),
102+
options.buildDir ?? DEFAULT_BUILD_DIR,
103+
);
99104
const prerenderManifestPath = path.join(nextJsPath, PRERENDER_MANIFEST);
100105
const serverDistDir = path.join(nextJsPath, SERVER_DIRECTORY);
101106
const fetchCacheDir = path.join(nextJsPath, "cache", "fetch-cache");

0 commit comments

Comments
 (0)