@netlify/plugin-nextjs
Advanced tools
Comparing version 5.7.1 to 5.7.2
@@ -19,3 +19,3 @@ | ||
require_semver | ||
} from "../../esm-chunks/chunk-EFGWM7RS.js"; | ||
} from "../../esm-chunks/chunk-APO262HE.js"; | ||
import { | ||
@@ -214,2 +214,3 @@ __toESM | ||
switch (true) { | ||
// Parallel route default layout has no prerendered page | ||
case (meta.dataRoute?.endsWith("/default.rsc") && !existsSync(join(ctx.publishDir, "server/app", `${key}.html`))): | ||
@@ -216,0 +217,0 @@ return; |
@@ -19,3 +19,3 @@ | ||
require_semver | ||
} from "../../esm-chunks/chunk-EFGWM7RS.js"; | ||
} from "../../esm-chunks/chunk-APO262HE.js"; | ||
import { | ||
@@ -22,0 +22,0 @@ __toESM |
@@ -9,3 +9,3 @@ | ||
require_semver | ||
} from "../esm-chunks/chunk-EFGWM7RS.js"; | ||
} from "../esm-chunks/chunk-APO262HE.js"; | ||
import { | ||
@@ -12,0 +12,0 @@ __toESM |
@@ -12,3 +12,3 @@ | ||
require_semver | ||
} from "../esm-chunks/chunk-EFGWM7RS.js"; | ||
} from "../esm-chunks/chunk-APO262HE.js"; | ||
import { | ||
@@ -15,0 +15,0 @@ __toESM |
@@ -149,3 +149,3 @@ | ||
// if we are serving already stale response, instruct edge to not attempt to cache that response | ||
headers.get("x-nextjs-cache") === "STALE" ? "public, max-age=0, must-revalidate" : `s-maxage=${requestContext.routeHandlerRevalidate === false ? 31536e3 : requestContext.routeHandlerRevalidate}, stale-while-revalidate=31536000, durable` | ||
headers.get("x-nextjs-cache") === "STALE" ? "public, max-age=0, must-revalidate, durable" : `s-maxage=${requestContext.routeHandlerRevalidate === false ? 31536e3 : requestContext.routeHandlerRevalidate}, stale-while-revalidate=31536000, durable` | ||
); | ||
@@ -163,3 +163,3 @@ headers.set("netlify-cdn-cache-control", cdnCacheControl); | ||
// if we are serving already stale response, instruct edge to not attempt to cache that response | ||
headers.get("x-nextjs-cache") === "STALE" ? "public, max-age=0, must-revalidate" : [ | ||
headers.get("x-nextjs-cache") === "STALE" ? "public, max-age=0, must-revalidate, durable" : [ | ||
...getHeaderValueArray(cacheControl).map( | ||
@@ -166,0 +166,0 @@ (value) => value === "stale-while-revalidate" ? "stale-while-revalidate=31536000" : value |
{ | ||
"name": "@netlify/plugin-nextjs", | ||
"version": "5.7.1", | ||
"version": "5.7.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
Sorry, the diff of this file is not supported yet
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
5251031
137266