@vercel/next 4.21.3 → 4.21.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/adapter/index.js +4 -9
- package/package.json +4 -4
package/dist/adapter/index.js
CHANGED
|
@@ -10308,10 +10308,6 @@ async function getSourceFilePathFromPage({
|
|
|
10308
10308
|
}
|
|
10309
10309
|
|
|
10310
10310
|
// src/routing.ts
|
|
10311
|
-
var API_PATH_PREFIX_PATTERN = "api(?:/.*|$)";
|
|
10312
|
-
function getI18nPathPrefixExclusion(locales) {
|
|
10313
|
-
return `(?!(?:_next/.*|api|${locales.map((locale) => escapeStringRegexp(locale)).join("|")})(?:/.*|$))`;
|
|
10314
|
-
}
|
|
10315
10311
|
function modifyWithRewriteHeaders(rewrites, {
|
|
10316
10312
|
isAfterFilesRewrite = false,
|
|
10317
10313
|
shouldHandleSegmentPrefetches
|
|
@@ -10671,7 +10667,6 @@ var myAdapter = {
|
|
|
10671
10667
|
const hasPagesDir = outputs.pages.length > 0 || outputs.pagesApi.length > 0;
|
|
10672
10668
|
const shouldHandleMiddlewareDataResolving = routing.shouldNormalizeNextData;
|
|
10673
10669
|
const i18nConfig = config.i18n;
|
|
10674
|
-
const i18nPathPrefixExclusion = i18nConfig ? getI18nPathPrefixExclusion(i18nConfig.locales) : "";
|
|
10675
10670
|
const vercelConfig2 = {
|
|
10676
10671
|
version: 3,
|
|
10677
10672
|
overrides: {},
|
|
@@ -10870,7 +10865,7 @@ var myAdapter = {
|
|
|
10870
10865
|
"/",
|
|
10871
10866
|
config.basePath,
|
|
10872
10867
|
"/"
|
|
10873
|
-
)}
|
|
10868
|
+
)}(?!(?:_next/.*|${config.i18n.locales.map((locale) => escapeStringRegexp(locale)).join("|")})(?:/.*|$))(.*)$`,
|
|
10874
10869
|
// we aren't able to ensure trailing slash mode here
|
|
10875
10870
|
// so ensure this comes after the trailing slash redirect
|
|
10876
10871
|
dest: `${config.basePath && config.basePath !== "/" ? import_node_path2.default.posix.join("/", config.basePath) : ""}$wildcard/$1`,
|
|
@@ -10944,7 +10939,7 @@ var myAdapter = {
|
|
|
10944
10939
|
"/",
|
|
10945
10940
|
config.basePath,
|
|
10946
10941
|
"/"
|
|
10947
|
-
)}
|
|
10942
|
+
)}(?!(?:_next/.*|${config.i18n.locales.map((locale) => escapeStringRegexp(locale)).join("|")})(?:/.*|$))(.*)$`,
|
|
10948
10943
|
dest: `${import_node_path2.default.posix.join(
|
|
10949
10944
|
"/",
|
|
10950
10945
|
config.basePath,
|
|
@@ -11209,7 +11204,7 @@ var myAdapter = {
|
|
|
11209
11204
|
"/",
|
|
11210
11205
|
config.basePath,
|
|
11211
11206
|
"/"
|
|
11212
|
-
)}
|
|
11207
|
+
)}(?!(?:_next/.*|${config.i18n.locales.map((locale) => escapeStringRegexp(locale)).join("|")})(?:/.*|$))(.*)$`,
|
|
11213
11208
|
dest: `${import_node_path2.default.posix.join(
|
|
11214
11209
|
"/",
|
|
11215
11210
|
config.basePath,
|
|
@@ -11231,7 +11226,7 @@ var myAdapter = {
|
|
|
11231
11226
|
src: `^${import_node_path2.default.posix.join(
|
|
11232
11227
|
"/",
|
|
11233
11228
|
config.basePath
|
|
11234
|
-
)}/?(?:${config.i18n.locales.map((locale) => escapeStringRegexp(locale)).join("|")})/(
|
|
11229
|
+
)}/?(?:${config.i18n.locales.map((locale) => escapeStringRegexp(locale)).join("|")})/(.*)`,
|
|
11235
11230
|
dest: `${import_node_path2.default.posix.join("/", config.basePath, "/")}$1`,
|
|
11236
11231
|
check: true
|
|
11237
11232
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vercel/next",
|
|
3
|
-
"version": "4.21.
|
|
3
|
+
"version": "4.21.4",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"main": "./dist/index",
|
|
6
6
|
"homepage": "https://vercel.com/docs/runtimes#official-runtimes/next-js",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"@vercel/nft": "1.10.0"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
|
-
"@next-community/adapter-vercel": "0.0.1-beta.
|
|
19
|
+
"@next-community/adapter-vercel": "0.0.1-beta.26",
|
|
20
20
|
"@types/aws-lambda": "8.10.19",
|
|
21
21
|
"@types/buffer-crc32": "0.2.0",
|
|
22
22
|
"@types/bytes": "3.1.1",
|
|
@@ -54,8 +54,8 @@
|
|
|
54
54
|
"vite": "6.4.3",
|
|
55
55
|
"vitest": "4.1.10",
|
|
56
56
|
"webpack-sources": "3.2.3",
|
|
57
|
-
"@vercel/build-utils": "14.0
|
|
58
|
-
"@vercel/routing-utils": "6.
|
|
57
|
+
"@vercel/build-utils": "14.1.0",
|
|
58
|
+
"@vercel/routing-utils": "6.5.0"
|
|
59
59
|
},
|
|
60
60
|
"scripts": {
|
|
61
61
|
"build": "node build.mjs",
|