@vercel/next 3.6.4 → 3.6.7
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 +10 -1
- package/dist/server-build.js +6 -1
- package/dist/utils.js +4 -0
- package/package.json +4 -4
package/dist/index.js
CHANGED
@@ -43370,10 +43370,15 @@ async function serverBuild({ dynamicPages, pagesDir, config = {}, privateOutputs
|
|
43370
43370
|
// to allow checking non-prefixed lambda outputs
|
43371
43371
|
...(i18n
|
43372
43372
|
? [
|
43373
|
+
{
|
43374
|
+
src: path_1.default.posix.join('/', entryDirectory, (0, escape_string_regexp_1.default)(i18n.defaultLocale)),
|
43375
|
+
dest: '/',
|
43376
|
+
check: true,
|
43377
|
+
},
|
43373
43378
|
{
|
43374
43379
|
src: `^${path_1.default.posix.join('/', entryDirectory)}/?(?:${i18n.locales
|
43375
43380
|
.map(locale => (0, escape_string_regexp_1.default)(locale))
|
43376
|
-
.join('|')})
|
43381
|
+
.join('|')})/(.*)`,
|
43377
43382
|
dest: `${path_1.default.posix.join('/', entryDirectory, '/')}$1`,
|
43378
43383
|
check: true,
|
43379
43384
|
},
|
@@ -45293,6 +45298,9 @@ async function getMiddlewareBundle({ entryPath, outputDirectory, routesManifest,
|
|
45293
45298
|
],
|
45294
45299
|
};
|
45295
45300
|
route.middlewarePath = shortPath;
|
45301
|
+
route.middlewareRawSrc = matcher.originalSource
|
45302
|
+
? [matcher.originalSource]
|
45303
|
+
: [];
|
45296
45304
|
if (isCorrectMiddlewareOrder) {
|
45297
45305
|
route.override = true;
|
45298
45306
|
}
|
@@ -45385,6 +45393,7 @@ function getRouteMatchers(info, { basePath = '', i18n }) {
|
|
45385
45393
|
return info.matchers.map(matcher => {
|
45386
45394
|
const m = {
|
45387
45395
|
regexp: getRegexp(matcher.regexp),
|
45396
|
+
originalSource: matcher.originalSource,
|
45388
45397
|
};
|
45389
45398
|
if (matcher.has) {
|
45390
45399
|
m.has = normalizeHas(matcher.has);
|
package/dist/server-build.js
CHANGED
@@ -982,10 +982,15 @@ async function serverBuild({ dynamicPages, pagesDir, config = {}, privateOutputs
|
|
982
982
|
// to allow checking non-prefixed lambda outputs
|
983
983
|
...(i18n
|
984
984
|
? [
|
985
|
+
{
|
986
|
+
src: path_1.default.posix.join('/', entryDirectory, (0, escape_string_regexp_1.default)(i18n.defaultLocale)),
|
987
|
+
dest: '/',
|
988
|
+
check: true,
|
989
|
+
},
|
985
990
|
{
|
986
991
|
src: `^${path_1.default.posix.join('/', entryDirectory)}/?(?:${i18n.locales
|
987
992
|
.map(locale => (0, escape_string_regexp_1.default)(locale))
|
988
|
-
.join('|')})
|
993
|
+
.join('|')})/(.*)`,
|
989
994
|
dest: `${path_1.default.posix.join('/', entryDirectory, '/')}$1`,
|
990
995
|
check: true,
|
991
996
|
},
|
package/dist/utils.js
CHANGED
@@ -1628,6 +1628,9 @@ async function getMiddlewareBundle({ entryPath, outputDirectory, routesManifest,
|
|
1628
1628
|
],
|
1629
1629
|
};
|
1630
1630
|
route.middlewarePath = shortPath;
|
1631
|
+
route.middlewareRawSrc = matcher.originalSource
|
1632
|
+
? [matcher.originalSource]
|
1633
|
+
: [];
|
1631
1634
|
if (isCorrectMiddlewareOrder) {
|
1632
1635
|
route.override = true;
|
1633
1636
|
}
|
@@ -1720,6 +1723,7 @@ function getRouteMatchers(info, { basePath = '', i18n }) {
|
|
1720
1723
|
return info.matchers.map(matcher => {
|
1721
1724
|
const m = {
|
1722
1725
|
regexp: getRegexp(matcher.regexp),
|
1726
|
+
originalSource: matcher.originalSource,
|
1723
1727
|
};
|
1724
1728
|
if (matcher.has) {
|
1725
1729
|
m.has = normalizeHas(matcher.has);
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@vercel/next",
|
3
|
-
"version": "3.6.
|
3
|
+
"version": "3.6.7",
|
4
4
|
"license": "MIT",
|
5
5
|
"main": "./dist/index",
|
6
6
|
"homepage": "https://vercel.com/docs/runtimes#official-runtimes/next-js",
|
@@ -45,9 +45,9 @@
|
|
45
45
|
"@types/semver": "6.0.0",
|
46
46
|
"@types/text-table": "0.2.1",
|
47
47
|
"@types/webpack-sources": "3.2.0",
|
48
|
-
"@vercel/build-utils": "6.
|
48
|
+
"@vercel/build-utils": "6.4.0",
|
49
49
|
"@vercel/nft": "0.22.5",
|
50
|
-
"@vercel/routing-utils": "2.1.
|
50
|
+
"@vercel/routing-utils": "2.1.11",
|
51
51
|
"async-sema": "3.0.1",
|
52
52
|
"buffer-crc32": "0.2.13",
|
53
53
|
"bytes": "3.1.2",
|
@@ -71,5 +71,5 @@
|
|
71
71
|
"typescript": "4.5.2",
|
72
72
|
"webpack-sources": "3.2.3"
|
73
73
|
},
|
74
|
-
"gitHead": "
|
74
|
+
"gitHead": "b2c68f1301b6a5eb41b6261b7faac6a8fa4c53eb"
|
75
75
|
}
|