Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@netlify/plugin-nextjs

Package Overview
Dependencies
Maintainers
20
Versions
261
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@netlify/plugin-nextjs - npm Package Compare versions

Comparing version 4.39.0 to 4.39.1

6

lib/templates/server.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc