@netlify/plugin-nextjs
Advanced tools
Comparing version 5.3.1 to 5.3.2
@@ -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
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
5239506
137022