@vercel/next 4.10.2 → 4.10.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +9 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -13009,7 +13009,13 @@ async function getNodeMiddleware({
|
|
|
13009
13009
|
import_path2.default.join(entryPath, outputDirectory)
|
|
13010
13010
|
)
|
|
13011
13011
|
})}`
|
|
13012
|
-
).replace(
|
|
13012
|
+
).replace(
|
|
13013
|
+
"__NEXT_MIDDLEWARE_PATH__",
|
|
13014
|
+
"./" + import_path2.default.posix.join(
|
|
13015
|
+
import_path2.default.posix.relative(projectDir, outputDirectory),
|
|
13016
|
+
`server/middleware.js`
|
|
13017
|
+
)
|
|
13018
|
+
);
|
|
13013
13019
|
const lambda = new import_build_utils.NodejsLambda({
|
|
13014
13020
|
...vercelConfigOpts,
|
|
13015
13021
|
runtime: nodeVersion,
|
|
@@ -15758,7 +15764,7 @@ ${JSON.stringify(
|
|
|
15758
15764
|
if (routesManifest.i18n) {
|
|
15759
15765
|
for (const locale of routesManifest.i18n?.locales || []) {
|
|
15760
15766
|
const prerenderPathname = pathname.replace(
|
|
15761
|
-
|
|
15767
|
+
/\/\$nextLocale/,
|
|
15762
15768
|
`/${locale}`
|
|
15763
15769
|
);
|
|
15764
15770
|
if (prerenders[import_path4.default.join("./", prerenderPathname)]) {
|
|
@@ -16940,7 +16946,7 @@ More info: http://err.sh/vercel/vercel/next-functions-config-optimized-lambdas`
|
|
|
16940
16946
|
continue;
|
|
16941
16947
|
experimentalPPRRoutes.add(route);
|
|
16942
16948
|
}
|
|
16943
|
-
const isAppPPREnabled = requiredServerFilesManifest ? requiredServerFilesManifest.config.experimental?.ppr === true || requiredServerFilesManifest.config.experimental?.ppr === "incremental" : false;
|
|
16949
|
+
const isAppPPREnabled = requiredServerFilesManifest ? requiredServerFilesManifest.config.experimental?.ppr === true || requiredServerFilesManifest.config.experimental?.ppr === "incremental" || requiredServerFilesManifest.config.experimental?.cacheComponents === true : false;
|
|
16944
16950
|
const isAppClientSegmentCacheEnabled = requiredServerFilesManifest ? requiredServerFilesManifest.config.experimental?.clientSegmentCache === true : false;
|
|
16945
16951
|
if (requiredServerFilesManifest) {
|
|
16946
16952
|
if (!routesManifest) {
|