@netlify/plugin-nextjs 5.15.8 → 5.15.9
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.
|
@@ -147,7 +147,14 @@ var extractConfigFromFile = async (apiFilePath, appDir) => {
|
|
|
147
147
|
}
|
|
148
148
|
const ast = await parseModule(apiFilePath, fileContent);
|
|
149
149
|
try {
|
|
150
|
-
|
|
150
|
+
const extracted = extractExportedConstValue(ast, "config");
|
|
151
|
+
if (!extracted || typeof extracted !== "object") {
|
|
152
|
+
return {};
|
|
153
|
+
}
|
|
154
|
+
if ("value" in extracted) {
|
|
155
|
+
return extracted.value;
|
|
156
|
+
}
|
|
157
|
+
return extracted;
|
|
151
158
|
} catch {
|
|
152
159
|
return {};
|
|
153
160
|
}
|
|
@@ -589,7 +589,8 @@ Check https://docs.netlify.com/build/frameworks/framework-setup-guides/nextjs/ov
|
|
|
589
589
|
parts.push(`registerCJSModules(import.meta.url, virtualModules, virtualSymlinks);
|
|
590
590
|
|
|
591
591
|
const require = createRequire(import.meta.url);
|
|
592
|
-
const
|
|
592
|
+
const middlewareEntrypoint = "${join(commonPrefix, entry)}"
|
|
593
|
+
const handlerMod = require("./" + middlewareEntrypoint);
|
|
593
594
|
const handler = handlerMod.default || handlerMod;
|
|
594
595
|
|
|
595
596
|
export default handler
|
|
@@ -86,7 +86,7 @@ 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.15.
|
|
89
|
+
var version = "5.15.9";
|
|
90
90
|
|
|
91
91
|
// src/run/handlers/tags-handler.cts
|
|
92
92
|
var import_storage = require("../storage/storage.cjs");
|
|
@@ -29,6 +29,20 @@ module.exports = __toCommonJS(regional_blob_store_exports);
|
|
|
29
29
|
var getString = (input) => typeof input === "string" ? input : JSON.stringify(input);
|
|
30
30
|
var base64Decode = globalThis.Buffer ? (input) => Buffer.from(input, "base64").toString() : (input) => atob(input);
|
|
31
31
|
var base64Encode = globalThis.Buffer ? (input) => Buffer.from(getString(input)).toString("base64") : (input) => btoa(getString(input));
|
|
32
|
+
var getEnvironment = () => {
|
|
33
|
+
const { Deno, Netlify, process: process2 } = globalThis;
|
|
34
|
+
return Netlify?.env ?? Deno?.env ?? {
|
|
35
|
+
delete: (key) => delete process2?.env[key],
|
|
36
|
+
get: (key) => process2?.env[key],
|
|
37
|
+
has: (key) => Boolean(process2?.env[key]),
|
|
38
|
+
set: (key, value) => {
|
|
39
|
+
if (process2?.env) {
|
|
40
|
+
process2.env[key] = value;
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
toObject: () => process2?.env ?? {}
|
|
44
|
+
};
|
|
45
|
+
};
|
|
32
46
|
|
|
33
47
|
// node_modules/@netlify/otel/dist/main.js
|
|
34
48
|
var GET_TRACER = "__netlify__getTracer";
|
|
@@ -46,21 +60,7 @@ function withActiveSpan(tracer, name, optionsOrFn, contextOrFn, fn) {
|
|
|
46
60
|
return tracer.withActiveSpan(name, optionsOrFn, contextOrFn, func);
|
|
47
61
|
}
|
|
48
62
|
|
|
49
|
-
// node_modules/@netlify/blobs/dist/chunk-
|
|
50
|
-
var getEnvironment = () => {
|
|
51
|
-
const { Deno, Netlify, process: process2 } = globalThis;
|
|
52
|
-
return Netlify?.env ?? Deno?.env ?? {
|
|
53
|
-
delete: (key) => delete process2?.env[key],
|
|
54
|
-
get: (key) => process2?.env[key],
|
|
55
|
-
has: (key) => Boolean(process2?.env[key]),
|
|
56
|
-
set: (key, value) => {
|
|
57
|
-
if (process2?.env) {
|
|
58
|
-
process2.env[key] = value;
|
|
59
|
-
}
|
|
60
|
-
},
|
|
61
|
-
toObject: () => process2?.env ?? {}
|
|
62
|
-
};
|
|
63
|
-
};
|
|
63
|
+
// node_modules/@netlify/blobs/dist/chunk-YAGWSQMB.js
|
|
64
64
|
var getEnvironmentContext = () => {
|
|
65
65
|
const context = globalThis.netlifyBlobsContext || getEnvironment().get("NETLIFY_BLOBS_CONTEXT");
|
|
66
66
|
if (typeof context !== "string" || !context) {
|