@netlify/plugin-nextjs 5.11.3 → 5.11.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -141,13 +141,23 @@ var NetlifyCacheHandler = class {
|
|
|
141
141
|
try {
|
|
142
142
|
const prerenderManifest = await this.getPrerenderManifest(this.options.serverDistDir);
|
|
143
143
|
if (typeof cacheControl !== "undefined") {
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
144
|
+
try {
|
|
145
|
+
const { SharedCacheControls } = await import(
|
|
146
|
+
// @ts-expect-error supporting multiple next version, this module is not resolvable with currently used dev dependency
|
|
147
|
+
// eslint-disable-next-line import/no-unresolved, n/no-missing-import
|
|
148
|
+
"next/dist/server/lib/incremental-cache/shared-cache-controls.external.js"
|
|
149
|
+
);
|
|
150
|
+
const sharedCacheControls = new SharedCacheControls(prerenderManifest);
|
|
151
|
+
sharedCacheControls.set(key, cacheControl);
|
|
152
|
+
} catch {
|
|
153
|
+
const { SharedCacheControls } = await import(
|
|
154
|
+
// @ts-expect-error supporting multiple next version, this module is not resolvable with currently used dev dependency
|
|
155
|
+
// eslint-disable-next-line import/no-unresolved, n/no-missing-import
|
|
156
|
+
"next/dist/server/lib/incremental-cache/shared-cache-controls.js"
|
|
157
|
+
);
|
|
158
|
+
const sharedCacheControls = new SharedCacheControls(prerenderManifest);
|
|
159
|
+
sharedCacheControls.set(key, cacheControl);
|
|
160
|
+
}
|
|
151
161
|
} else if (typeof revalidate === "number" || revalidate === false) {
|
|
152
162
|
try {
|
|
153
163
|
const { normalizePagePath } = await import("next/dist/shared/lib/page-path/normalize-page-path.js");
|
|
@@ -86,7 +86,7 @@ var pipeline = (0, import_node_util.promisify)(import_node_stream.pipeline);
|
|
|
86
86
|
|
|
87
87
|
// package.json
|
|
88
88
|
var name = "@netlify/plugin-nextjs";
|
|
89
|
-
var version = "5.11.
|
|
89
|
+
var version = "5.11.4";
|
|
90
90
|
|
|
91
91
|
// src/run/handlers/tags-handler.cts
|
|
92
92
|
var import_storage = require("../storage/storage.cjs");
|