@netlify/plugin-nextjs 5.14.5 → 5.14.7
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.
|
@@ -134,6 +134,17 @@ var extractConfigFromFile = async (apiFilePath, appDir) => {
|
|
|
134
134
|
if (!fileContent.includes("config")) {
|
|
135
135
|
return {};
|
|
136
136
|
}
|
|
137
|
+
try {
|
|
138
|
+
const installBindingsModule = findModuleFromBase({
|
|
139
|
+
paths: [appDir],
|
|
140
|
+
candidates: ["next/dist/build/swc/install-bindings"]
|
|
141
|
+
});
|
|
142
|
+
if (installBindingsModule) {
|
|
143
|
+
const { installBindings } = __require(installBindingsModule);
|
|
144
|
+
await installBindings();
|
|
145
|
+
}
|
|
146
|
+
} catch {
|
|
147
|
+
}
|
|
137
148
|
const ast = await parseModule(apiFilePath, fileContent);
|
|
138
149
|
try {
|
|
139
150
|
return extractExportedConstValue(ast, "config");
|
|
@@ -534,7 +534,7 @@ var copyHandlerDependenciesForNodeMiddleware = async (ctx) => {
|
|
|
534
534
|
const parts = [shim];
|
|
535
535
|
const entry = "server/middleware.js";
|
|
536
536
|
const nft = `${entry}.nft.json`;
|
|
537
|
-
const nftFilesPath = join(
|
|
537
|
+
const nftFilesPath = join(ctx.publishDir, nft);
|
|
538
538
|
const nftManifest = JSON.parse(await readFile(nftFilesPath, "utf8"));
|
|
539
539
|
const files = nftManifest.files.map((file) => join("server", file));
|
|
540
540
|
files.push(entry);
|
|
@@ -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.14.
|
|
89
|
+
var version = "5.14.7";
|
|
90
90
|
|
|
91
91
|
// src/run/handlers/tags-handler.cts
|
|
92
92
|
var import_storage = require("../storage/storage.cjs");
|