@vercel/next 4.13.3 → 4.14.0
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 +2 -4
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -12564,12 +12564,13 @@ var onPrerenderRoute = (prerenderRouteArgs) => async (routeKey, {
|
|
|
12564
12564
|
function normalizeDataRoute(route) {
|
|
12565
12565
|
let normalized = import_path3.default.posix.join(entryDirectory, route);
|
|
12566
12566
|
if (nonDynamicSsg || isFallback || isOmitted) {
|
|
12567
|
+
const pathToReplace = route.endsWith(routeFileNoExt + ".json") ? origRouteFileNoExt : routeFileNoExt;
|
|
12567
12568
|
normalized = normalized.replace(
|
|
12568
12569
|
new RegExp(`${(0, import_escape_string_regexp.default)(origRouteFileNoExt)}.json$`),
|
|
12569
12570
|
// ensure we escape "$" correctly while replacing as "$" is a special
|
|
12570
12571
|
// character, we need to do double escaping as first is for the initial
|
|
12571
12572
|
// replace on the routeFile and then the second on the outputPath
|
|
12572
|
-
`${
|
|
12573
|
+
`${pathToReplace.replace(/\$/g, "$$$$")}.json`
|
|
12573
12574
|
);
|
|
12574
12575
|
}
|
|
12575
12576
|
return normalized;
|
|
@@ -16341,7 +16342,6 @@ var build = async (buildOptions) => {
|
|
|
16341
16342
|
cliType,
|
|
16342
16343
|
lockfileVersion,
|
|
16343
16344
|
packageJsonPackageManager,
|
|
16344
|
-
nodeVersion,
|
|
16345
16345
|
env: spawnOpts.env || {},
|
|
16346
16346
|
turboSupportsCorepackHome,
|
|
16347
16347
|
projectCreatedAt: config.projectSettings?.createdAt
|
|
@@ -16428,7 +16428,6 @@ var build = async (buildOptions) => {
|
|
|
16428
16428
|
[],
|
|
16429
16429
|
spawnOpts,
|
|
16430
16430
|
meta,
|
|
16431
|
-
nodeVersion,
|
|
16432
16431
|
config.projectSettings?.createdAt
|
|
16433
16432
|
);
|
|
16434
16433
|
}
|
|
@@ -16944,7 +16943,6 @@ More info: http://err.sh/vercel/vercel/next-functions-config-optimized-lambdas`
|
|
|
16944
16943
|
["--production"],
|
|
16945
16944
|
spawnOpts,
|
|
16946
16945
|
meta,
|
|
16947
|
-
nodeVersion,
|
|
16948
16946
|
config.projectSettings?.createdAt
|
|
16949
16947
|
);
|
|
16950
16948
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vercel/next",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.14.0",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"main": "./dist/index",
|
|
6
6
|
"homepage": "https://vercel.com/docs/runtimes#official-runtimes/next-js",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"@types/semver": "6.0.0",
|
|
31
31
|
"@types/text-table": "0.2.1",
|
|
32
32
|
"@types/webpack-sources": "3.2.0",
|
|
33
|
-
"@vercel/build-utils": "12.
|
|
33
|
+
"@vercel/build-utils": "12.2.0",
|
|
34
34
|
"@vercel/routing-utils": "5.2.0",
|
|
35
35
|
"async-sema": "3.0.1",
|
|
36
36
|
"buffer-crc32": "0.2.13",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
},
|
|
58
58
|
"scripts": {
|
|
59
59
|
"build": "node build.mjs",
|
|
60
|
-
"test": "
|
|
60
|
+
"test": "jest --reporters=default --reporters=jest-junit --env node --verbose --bail --runInBand --testTimeout=360000",
|
|
61
61
|
"test-unit": "pnpm test test/unit/",
|
|
62
62
|
"test-next-local": "pnpm test test/integration/*.test.js test/integration/*.test.ts",
|
|
63
63
|
"test-next-local-legacy": "pnpm test test/integration/legacy/*.test.js",
|