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

@netlify/plugin-nextjs

Package Overview
Dependencies
Maintainers
23
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 5.3.1 to 5.3.2

dist/esm-chunks/package-NUPTPA44.js

2

dist/build/content/prerendered.js

@@ -159,3 +159,3 @@

);
if (!meta.status && rsc.includes("NEXT_NOT_FOUND")) {
if (!meta.status && rsc.includes("NEXT_NOT_FOUND") && !meta.headers["x-next-cache-tags"].includes("/@")) {
meta.status = 404;

@@ -162,0 +162,0 @@ }

import type { Context } from '@netlify/edge-functions'
import { normalizeDataUrl, removeBasePath, normalizeLocalePath, addBasePath } from './util.ts'
import { addBasePath, normalizeDataUrl, normalizeLocalePath, removeBasePath } from './util.ts'

@@ -77,2 +77,7 @@ interface I18NConfig {

// keep the locale in the url for request.nextUrl object
if (detectedLocale) {
url.pathname = `/${detectedLocale}${url.pathname}`
}
return {

@@ -92,5 +97,5 @@ url: url.toString(),

const geo: RequestData['geo'] = {
city,
country: country?.code,
region: subdivision?.code,
city,
latitude: latitude?.toString(),

@@ -97,0 +102,0 @@ longitude: longitude?.toString(),

@@ -1,3 +0,1 @@

import type { RequestData } from './next-request.ts'
/**

@@ -4,0 +2,0 @@ * Normalize a data URL into a route path.

@@ -9,8 +9,7 @@ import type { Context } from '@netlify/edge-functions'

import { buildNextRequest, RequestData } from './lib/next-request.ts'
import { buildResponse } from './lib/response.ts'
import { FetchEventResult } from './lib/response.ts'
import { buildResponse, FetchEventResult } from './lib/response.ts'
import {
type MiddlewareRouteMatch,
getMiddlewareRouteMatcher,
searchParamsToUrlQuery,
type MiddlewareRouteMatch,
} from './lib/routing.ts'

@@ -17,0 +16,0 @@

{
"name": "@netlify/plugin-nextjs",
"version": "5.3.1",
"version": "5.3.2",
"description": "Run Next.js seamlessly on Netlify",

@@ -5,0 +5,0 @@ "main": "./dist/index.js",

Sorry, the diff of this file is too big to display

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