@vercel/next 4.13.3 → 4.13.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 +2 -1
- 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;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vercel/next",
|
|
3
|
-
"version": "4.13.
|
|
3
|
+
"version": "4.13.4",
|
|
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.1.
|
|
33
|
+
"@vercel/build-utils": "12.1.3",
|
|
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",
|