@netlify/plugin-nextjs
Advanced tools
Comparing version 4.39.0 to 4.39.1
@@ -57,6 +57,6 @@ "use strict"; | ||
const routesManifest = (_a = this.getRoutesManifest) === null || _a === void 0 ? void 0 : _a.call(this); | ||
const appPathsManifest = (_b = this.getAppPathsManifest) === null || _b === void 0 ? void 0 : _b.call(this); | ||
const appPathsRoutes = (_b = this.getAppPathRoutes) === null || _b === void 0 ? void 0 : _b.call(this); | ||
const routes = routesManifest && [...routesManifest.staticRoutes, ...routesManifest.dynamicRoutes]; | ||
const matchedRoute = routes === null || routes === void 0 ? void 0 : routes.find((route) => new RegExp(route.regex).test(path.split('?')[0])); | ||
const isAppRoute = appPathsManifest && matchedRoute ? appPathsManifest[(0, handlerUtils_1.joinPaths)(matchedRoute.page, 'page')] : false; | ||
const matchedRoute = routes === null || routes === void 0 ? void 0 : routes.find((route) => new RegExp(route.regex).test(new URL(path, 'http://n').pathname)); | ||
const isAppRoute = appPathsRoutes && matchedRoute ? appPathsRoutes[matchedRoute.page] : false; | ||
if (isAppRoute) { | ||
@@ -63,0 +63,0 @@ // app routes should use prebundled React |
{ | ||
"name": "@netlify/plugin-nextjs", | ||
"version": "4.39.0", | ||
"version": "4.39.1", | ||
"description": "Run Next.js seamlessly on Netlify", | ||
@@ -40,3 +40,3 @@ "main": "index.js", | ||
"@delucis/if-env": "^1.1.2", | ||
"@netlify/build": "^29.15.0", | ||
"@netlify/build": "^29.15.6", | ||
"@types/fs-extra": "^9.0.13", | ||
@@ -43,0 +43,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
216588