nextjs-server-modules
Advanced tools
Comparing version 2.2.0 to 2.3.0
@@ -11,3 +11,13 @@ const path = require("path") | ||
if (existsSync(nextConfigPath)) { | ||
nextConfig = require(nextConfigPath) | ||
try { | ||
nextConfig = require(nextConfigPath) | ||
} catch (errorA) { | ||
try { | ||
nextConfig = await import(nextConfigPath) | ||
} catch (errorB) { | ||
console.error(errorA) | ||
console.error(errorB) | ||
throw new Error(`Failed to load ${nextConfigPath}`) | ||
} | ||
} | ||
@@ -14,0 +24,0 @@ if (typeof nextConfig === "function") { |
{ | ||
"name": "nextjs-server-modules", | ||
"version": "2.2.0", | ||
"version": "2.3.0", | ||
"main": "bin.js", | ||
@@ -5,0 +5,0 @@ "repository": "git@github.com:hello-seam/nextjs-server-modules.git", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
61239
33
1792