@vercel/next 3.6.4 → 3.6.6
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 +5 -1
- package/dist/server-build.js +1 -1
- package/dist/utils.js +4 -0
- package/package.json +3 -3
package/dist/index.js
CHANGED
@@ -43373,7 +43373,7 @@ async function serverBuild({ dynamicPages, pagesDir, config = {}, privateOutputs
|
|
43373
43373
|
{
|
43374
43374
|
src: `^${path_1.default.posix.join('/', entryDirectory)}/?(?:${i18n.locales
|
43375
43375
|
.map(locale => (0, escape_string_regexp_1.default)(locale))
|
43376
|
-
.join('|')})
|
43376
|
+
.join('|')})/(.*)`,
|
43377
43377
|
dest: `${path_1.default.posix.join('/', entryDirectory, '/')}$1`,
|
43378
43378
|
check: true,
|
43379
43379
|
},
|
@@ -45293,6 +45293,9 @@ async function getMiddlewareBundle({ entryPath, outputDirectory, routesManifest,
|
|
45293
45293
|
],
|
45294
45294
|
};
|
45295
45295
|
route.middlewarePath = shortPath;
|
45296
|
+
route.middlewareRawSrc = matcher.originalSource
|
45297
|
+
? [matcher.originalSource]
|
45298
|
+
: [];
|
45296
45299
|
if (isCorrectMiddlewareOrder) {
|
45297
45300
|
route.override = true;
|
45298
45301
|
}
|
@@ -45385,6 +45388,7 @@ function getRouteMatchers(info, { basePath = '', i18n }) {
|
|
45385
45388
|
return info.matchers.map(matcher => {
|
45386
45389
|
const m = {
|
45387
45390
|
regexp: getRegexp(matcher.regexp),
|
45391
|
+
originalSource: matcher.originalSource,
|
45388
45392
|
};
|
45389
45393
|
if (matcher.has) {
|
45390
45394
|
m.has = normalizeHas(matcher.has);
|
package/dist/server-build.js
CHANGED
@@ -985,7 +985,7 @@ async function serverBuild({ dynamicPages, pagesDir, config = {}, privateOutputs
|
|
985
985
|
{
|
986
986
|
src: `^${path_1.default.posix.join('/', entryDirectory)}/?(?:${i18n.locales
|
987
987
|
.map(locale => (0, escape_string_regexp_1.default)(locale))
|
988
|
-
.join('|')})
|
988
|
+
.join('|')})/(.*)`,
|
989
989
|
dest: `${path_1.default.posix.join('/', entryDirectory, '/')}$1`,
|
990
990
|
check: true,
|
991
991
|
},
|
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.6",
|
4
4
|
"license": "MIT",
|
5
5
|
"main": "./dist/index",
|
6
6
|
"homepage": "https://vercel.com/docs/runtimes#official-runtimes/next-js",
|
@@ -45,7 +45,7 @@
|
|
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.3.
|
48
|
+
"@vercel/build-utils": "6.3.4",
|
49
49
|
"@vercel/nft": "0.22.5",
|
50
50
|
"@vercel/routing-utils": "2.1.10",
|
51
51
|
"async-sema": "3.0.1",
|
@@ -71,5 +71,5 @@
|
|
71
71
|
"typescript": "4.5.2",
|
72
72
|
"webpack-sources": "3.2.3"
|
73
73
|
},
|
74
|
-
"gitHead": "
|
74
|
+
"gitHead": "21a440b83262760ccae70f5c58dc73b3718182a5"
|
75
75
|
}
|