@netlify/plugin-nextjs
Advanced tools
Comparing version 4.41.2 to 4.41.3
@@ -110,5 +110,8 @@ "use strict"; | ||
promises.readFile = (async (file, options) => { | ||
const baseUrl = getBase(); | ||
// We only care about page files | ||
if (file.startsWith(pageRoot)) { | ||
// file argument can be a string, URL, etc - Next.js cache reading uses a string | ||
// and that's only thing we really want to handle here, so we just do type checking | ||
// instead of trying to handle all possible type before checking weather read | ||
// is about page files. | ||
if (typeof file === 'string' && file.startsWith(pageRoot)) { | ||
const baseUrl = getBase(); | ||
// We only want the part after `.next/server/` | ||
@@ -115,0 +118,0 @@ const filePath = file.slice(pageRoot.length + 1); |
{ | ||
"name": "@netlify/plugin-nextjs", | ||
"version": "4.41.2", | ||
"version": "4.41.3", | ||
"description": "Run Next.js seamlessly on Netlify", | ||
@@ -42,3 +42,3 @@ "main": "index.js", | ||
"@delucis/if-env": "^1.1.2", | ||
"@netlify/build": "^29.26.5", | ||
"@netlify/build": "^29.30.0", | ||
"@types/fs-extra": "^9.0.13", | ||
@@ -45,0 +45,0 @@ "@types/jest": "^27.4.1", |
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
1782788
55137