@netlify/plugin-nextjs 5.11.3 → 5.11.5
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.
|
@@ -84,7 +84,13 @@ var copyNextServerCode = async (ctx) => {
|
|
|
84
84
|
const nextFolder = toPosixPath(ctx.distDir) === toPosixPath(ctx.buildConfig.distDir) ? ctx.distDir : ctx.nextDistDir;
|
|
85
85
|
const destDir = join(ctx.serverHandlerDir, nextFolder);
|
|
86
86
|
const paths = await (0, import_fast_glob.default)(
|
|
87
|
-
[
|
|
87
|
+
[
|
|
88
|
+
`*`,
|
|
89
|
+
`server/*`,
|
|
90
|
+
`server/chunks/**/*`,
|
|
91
|
+
`server/edge-chunks/**/*`,
|
|
92
|
+
`server/+(app|pages)/**/*.js`
|
|
93
|
+
],
|
|
88
94
|
{
|
|
89
95
|
cwd: srcDir,
|
|
90
96
|
extglob: true
|
|
@@ -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");
|
|
@@ -29,8 +29,8 @@ module.exports = __toCommonJS(tags_handler_exports);
|
|
|
29
29
|
|
|
30
30
|
// node_modules/@netlify/functions/dist/main.js
|
|
31
31
|
var import_process = require("process");
|
|
32
|
-
var
|
|
33
|
-
var
|
|
32
|
+
var import_stream = require("stream");
|
|
33
|
+
var import_util = require("util");
|
|
34
34
|
var purgeCache = async (options = {}) => {
|
|
35
35
|
if (globalThis.fetch === void 0) {
|
|
36
36
|
throw new Error(
|
|
@@ -82,11 +82,11 @@ var purgeCache = async (options = {}) => {
|
|
|
82
82
|
throw new Error(`Cache purge API call returned an unexpected status code: ${response.status}`);
|
|
83
83
|
}
|
|
84
84
|
};
|
|
85
|
-
var pipeline = (0,
|
|
85
|
+
var pipeline = (0, import_util.promisify)(import_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.5";
|
|
90
90
|
|
|
91
91
|
// src/run/handlers/tags-handler.cts
|
|
92
92
|
var import_storage = require("../storage/storage.cjs");
|