@netlify/plugin-nextjs 5.14.4 → 5.14.6

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");
@@ -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.4";
89
+ var version = "5.14.6";
90
90
 
91
91
  // src/run/handlers/tags-handler.cts
92
92
  var import_storage = require("../storage/storage.cjs");