@vercel/next 3.1.16 → 3.1.17

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 CHANGED
@@ -47038,7 +47038,11 @@ const onPrerenderRoute = (prerenderRouteArgs) => (routeKey, { isBlocking, isFall
47038
47038
  let lambda;
47039
47039
  let outputPathData = path_1.default.posix.join(entryDirectory, dataRoute);
47040
47040
  if (nonDynamicSsg || isFallback || isOmitted) {
47041
- outputPathData = outputPathData.replace(new RegExp(`${(0, escape_string_regexp_1.default)(origRouteFileNoExt)}.json$`), `${routeFileNoExt}.json`);
47041
+ outputPathData = outputPathData.replace(new RegExp(`${(0, escape_string_regexp_1.default)(origRouteFileNoExt)}.json$`),
47042
+ // ensure we escape "$" correctly while replacing as "$" is a special
47043
+ // character, we need to do double escaping as first is for the initial
47044
+ // replace on the routeFile and then the second on the outputPath
47045
+ `${routeFileNoExt.replace(/\$/g, '$$$$')}.json`);
47042
47046
  }
47043
47047
  if (isSharedLambdas) {
47044
47048
  const outputSrcPathPage = normalizeIndexOutput(path_1.default.join('/', srcRoute == null
package/dist/utils.js CHANGED
@@ -1118,7 +1118,11 @@ const onPrerenderRoute = (prerenderRouteArgs) => (routeKey, { isBlocking, isFall
1118
1118
  let lambda;
1119
1119
  let outputPathData = path_1.default.posix.join(entryDirectory, dataRoute);
1120
1120
  if (nonDynamicSsg || isFallback || isOmitted) {
1121
- outputPathData = outputPathData.replace(new RegExp(`${(0, escape_string_regexp_1.default)(origRouteFileNoExt)}.json$`), `${routeFileNoExt}.json`);
1121
+ outputPathData = outputPathData.replace(new RegExp(`${(0, escape_string_regexp_1.default)(origRouteFileNoExt)}.json$`),
1122
+ // ensure we escape "$" correctly while replacing as "$" is a special
1123
+ // character, we need to do double escaping as first is for the initial
1124
+ // replace on the routeFile and then the second on the outputPath
1125
+ `${routeFileNoExt.replace(/\$/g, '$$$$')}.json`);
1122
1126
  }
1123
1127
  if (isSharedLambdas) {
1124
1128
  const outputSrcPathPage = normalizeIndexOutput(path_1.default.join('/', srcRoute == null
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/next",
3
- "version": "3.1.16",
3
+ "version": "3.1.17",
4
4
  "license": "MIT",
5
5
  "main": "./dist/index",
6
6
  "homepage": "https://vercel.com/docs/runtimes#official-runtimes/next-js",
@@ -69,5 +69,5 @@
69
69
  "typescript": "4.5.2",
70
70
  "webpack-sources": "3.2.3"
71
71
  },
72
- "gitHead": "47e3381c6df661168e8be335cc58df03f3cf2414"
72
+ "gitHead": "31f79c7de1944420b1f6fa5be9235c9b3f1d62b6"
73
73
  }