vercel 50.10.0 → 50.10.2
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 +48 -39
- package/package.json +17 -17
package/dist/index.js
CHANGED
|
@@ -51733,7 +51733,7 @@ var require_package = __commonJS2({
|
|
|
51733
51733
|
"../client/package.json"(exports2, module2) {
|
|
51734
51734
|
module2.exports = {
|
|
51735
51735
|
name: "@vercel/client",
|
|
51736
|
-
version: "17.2.
|
|
51736
|
+
version: "17.2.32",
|
|
51737
51737
|
main: "dist/index.js",
|
|
51738
51738
|
typings: "dist/index.d.ts",
|
|
51739
51739
|
homepage: "https://vercel.com",
|
|
@@ -85103,6 +85103,7 @@ var require_utils15 = __commonJS2({
|
|
|
85103
85103
|
__export4(utils_exports, {
|
|
85104
85104
|
getBuilderForRuntime: () => getBuilderForRuntime,
|
|
85105
85105
|
inferServiceRuntime: () => inferServiceRuntime,
|
|
85106
|
+
isStaticBuild: () => isStaticBuild2,
|
|
85106
85107
|
readVercelConfig: () => readVercelConfig
|
|
85107
85108
|
});
|
|
85108
85109
|
module2.exports = __toCommonJS4(utils_exports);
|
|
@@ -85115,6 +85116,9 @@ var require_utils15 = __commonJS2({
|
|
|
85115
85116
|
}
|
|
85116
85117
|
return builder;
|
|
85117
85118
|
}
|
|
85119
|
+
function isStaticBuild2(service) {
|
|
85120
|
+
return import_types3.STATIC_BUILDERS.has(service.builder.use);
|
|
85121
|
+
}
|
|
85118
85122
|
function inferServiceRuntime(config2) {
|
|
85119
85123
|
if (config2.runtime && config2.runtime in import_types3.RUNTIME_BUILDERS) {
|
|
85120
85124
|
return config2.runtime;
|
|
@@ -85299,7 +85303,7 @@ var require_resolve2 = __commonJS2({
|
|
|
85299
85303
|
builderUse = (0, import_utils9.getBuilderForRuntime)(inferredRuntime);
|
|
85300
85304
|
builderSrc = config2.entrypoint;
|
|
85301
85305
|
}
|
|
85302
|
-
const routePrefix = type === "web" ? config2.routePrefix : void 0;
|
|
85306
|
+
const routePrefix = type === "web" && config2.routePrefix ? config2.routePrefix.startsWith("/") ? config2.routePrefix : `/${config2.routePrefix}` : void 0;
|
|
85303
85307
|
const isRoot = workspace === ".";
|
|
85304
85308
|
if (!isRoot && !builderSrc.startsWith(workspace + "/")) {
|
|
85305
85309
|
builderSrc = import_path45.posix.join(workspace, builderSrc);
|
|
@@ -85313,8 +85317,15 @@ var require_resolve2 = __commonJS2({
|
|
|
85313
85317
|
builderConfig.includeFiles = config2.includeFiles;
|
|
85314
85318
|
if (config2.excludeFiles)
|
|
85315
85319
|
builderConfig.excludeFiles = config2.excludeFiles;
|
|
85316
|
-
const
|
|
85317
|
-
const runtime =
|
|
85320
|
+
const isStaticBuild2 = import_types3.STATIC_BUILDERS.has(builderUse);
|
|
85321
|
+
const runtime = isStaticBuild2 ? void 0 : inferredRuntime;
|
|
85322
|
+
if (routePrefix) {
|
|
85323
|
+
const stripped = routePrefix.startsWith("/") ? routePrefix.slice(1) : routePrefix;
|
|
85324
|
+
builderConfig.routePrefix = stripped || ".";
|
|
85325
|
+
}
|
|
85326
|
+
if (config2.framework) {
|
|
85327
|
+
builderConfig.framework = config2.framework;
|
|
85328
|
+
}
|
|
85318
85329
|
return {
|
|
85319
85330
|
name,
|
|
85320
85331
|
type,
|
|
@@ -85424,33 +85435,34 @@ var require_detect_services = __commonJS2({
|
|
|
85424
85435
|
const defaults = [];
|
|
85425
85436
|
const crons = [];
|
|
85426
85437
|
const workers = [];
|
|
85427
|
-
const
|
|
85438
|
+
const sortedWebServices = services.filter(
|
|
85428
85439
|
(s) => s.type === "web" && typeof s.routePrefix === "string"
|
|
85429
|
-
);
|
|
85430
|
-
const sortedWebServices = [...webServices].sort((a, b) => {
|
|
85431
|
-
if (a.routePrefix === "/")
|
|
85432
|
-
return 1;
|
|
85433
|
-
if (b.routePrefix === "/")
|
|
85434
|
-
return -1;
|
|
85435
|
-
return b.routePrefix.length - a.routePrefix.length;
|
|
85436
|
-
});
|
|
85440
|
+
).sort((a, b) => b.routePrefix.length - a.routePrefix.length);
|
|
85437
85441
|
for (const service of sortedWebServices) {
|
|
85438
|
-
const { routePrefix
|
|
85439
|
-
const
|
|
85440
|
-
|
|
85441
|
-
|
|
85442
|
-
|
|
85443
|
-
src: "
|
|
85444
|
-
|
|
85445
|
-
|
|
85446
|
-
|
|
85442
|
+
const { routePrefix } = service;
|
|
85443
|
+
const normalizedPrefix = routePrefix.slice(1);
|
|
85444
|
+
if ((0, import_utils9.isStaticBuild)(service)) {
|
|
85445
|
+
if (routePrefix === "/") {
|
|
85446
|
+
defaults.push({ handle: "filesystem" });
|
|
85447
|
+
defaults.push({ src: "/(.*)", dest: "/index.html" });
|
|
85448
|
+
} else {
|
|
85449
|
+
rewrites.push({
|
|
85450
|
+
src: `^/${normalizedPrefix}(?:/.*)?$`,
|
|
85451
|
+
dest: `/${normalizedPrefix}/index.html`
|
|
85452
|
+
});
|
|
85453
|
+
}
|
|
85447
85454
|
} else {
|
|
85448
|
-
const
|
|
85449
|
-
|
|
85450
|
-
|
|
85451
|
-
dest: functionPath,
|
|
85452
|
-
|
|
85453
|
-
|
|
85455
|
+
const builderSrc = service.builder.src || routePrefix;
|
|
85456
|
+
const functionPath = builderSrc.startsWith("/") ? builderSrc : `/${builderSrc}`;
|
|
85457
|
+
if (routePrefix === "/") {
|
|
85458
|
+
defaults.push({ src: "^/(.*)$", dest: functionPath, check: true });
|
|
85459
|
+
} else {
|
|
85460
|
+
rewrites.push({
|
|
85461
|
+
src: `^/${normalizedPrefix}(?:/.*)?$`,
|
|
85462
|
+
dest: functionPath,
|
|
85463
|
+
check: true
|
|
85464
|
+
});
|
|
85465
|
+
}
|
|
85454
85466
|
}
|
|
85455
85467
|
}
|
|
85456
85468
|
return { rewrites, defaults, crons, workers };
|
|
@@ -86171,7 +86183,9 @@ var require_detect_builders = __commonJS2({
|
|
|
86171
86183
|
const f = slugToFramework.get(framework || "");
|
|
86172
86184
|
if (f && f.useRuntime) {
|
|
86173
86185
|
const { src, use } = f.useRuntime;
|
|
86174
|
-
|
|
86186
|
+
const shouldUseUnifiedBackend = (0, import_build_utils20.isExperimentalBackendsEnabled)() && import_build_utils20.BACKEND_BUILDERS.includes(use);
|
|
86187
|
+
const finalUse = shouldUseUnifiedBackend ? import_build_utils20.UNIFIED_BACKEND_BUILDER : use;
|
|
86188
|
+
return { src, use: `${finalUse}${withTag}`, config: config2 };
|
|
86175
86189
|
}
|
|
86176
86190
|
const entrypoints = /* @__PURE__ */ new Set([
|
|
86177
86191
|
"package.json",
|
|
@@ -93454,6 +93468,7 @@ var require_dist8 = __commonJS2({
|
|
|
93454
93468
|
getWorkspacePackagePaths: () => import_get_workspace_package_paths.getWorkspacePackagePaths,
|
|
93455
93469
|
getWorkspaces: () => import_get_workspaces.getWorkspaces,
|
|
93456
93470
|
isOfficialRuntime: () => import_is_official_runtime.isOfficialRuntime,
|
|
93471
|
+
isStaticBuild: () => import_utils9.isStaticBuild,
|
|
93457
93472
|
isStaticRuntime: () => import_is_official_runtime.isStaticRuntime,
|
|
93458
93473
|
monorepoManagers: () => import_monorepo_managers.monorepoManagers,
|
|
93459
93474
|
packageManagers: () => import_package_managers.packageManagers,
|
|
@@ -93462,6 +93477,7 @@ var require_dist8 = __commonJS2({
|
|
|
93462
93477
|
module2.exports = __toCommonJS4(src_exports2);
|
|
93463
93478
|
var import_detect_builders = require_detect_builders();
|
|
93464
93479
|
var import_detect_services2 = require_detect_services();
|
|
93480
|
+
var import_utils9 = require_utils15();
|
|
93465
93481
|
var import_get_services_builders = require_get_services_builders();
|
|
93466
93482
|
var import_detect_file_system_api = require_detect_file_system_api();
|
|
93467
93483
|
var import_detect_framework = require_detect_framework();
|
|
@@ -153870,7 +153886,6 @@ import {
|
|
|
153870
153886
|
resetCustomInstallCommandSet,
|
|
153871
153887
|
Span,
|
|
153872
153888
|
validateNpmrc,
|
|
153873
|
-
shouldUseExperimentalBackends,
|
|
153874
153889
|
isBackendBuilder as isBackendBuilder2
|
|
153875
153890
|
} from "@vercel/build-utils";
|
|
153876
153891
|
import { mkdir as mkdir4, writeFile as writeFile5 } from "fs/promises";
|
|
@@ -154317,13 +154332,7 @@ async function doBuild(client2, project, buildsJson, cwd, outputDir, span, stand
|
|
|
154317
154332
|
let buildResult;
|
|
154318
154333
|
try {
|
|
154319
154334
|
buildResult = await builderSpan.trace(
|
|
154320
|
-
async () =>
|
|
154321
|
-
if (shouldUseExperimentalBackends(buildConfig.framework) && builderPkg.name !== "@vercel/static" && isBackendBuilder2(build2)) {
|
|
154322
|
-
const experimentalBackendBuilder = await import("@vercel/backends");
|
|
154323
|
-
return experimentalBackendBuilder.build(buildOptions);
|
|
154324
|
-
}
|
|
154325
|
-
return builder.build(buildOptions);
|
|
154326
|
-
}
|
|
154335
|
+
async () => builder.build(buildOptions)
|
|
154327
154336
|
);
|
|
154328
154337
|
if (buildConfig.zeroConfig && isFrontendBuilder && "output" in buildResult && !buildResult.routes) {
|
|
154329
154338
|
const framework2 = import_frameworks6.frameworkList.find(
|
|
@@ -176549,7 +176558,7 @@ import {
|
|
|
176549
176558
|
getNodeBinPaths,
|
|
176550
176559
|
FileFsRef as FileFsRef4,
|
|
176551
176560
|
spawnCommand,
|
|
176552
|
-
shouldUseExperimentalBackends
|
|
176561
|
+
shouldUseExperimentalBackends
|
|
176553
176562
|
} from "@vercel/build-utils";
|
|
176554
176563
|
function sortBuilders2(buildA, buildB) {
|
|
176555
176564
|
if (buildA && buildA.use && (0, import_fs_detectors7.isOfficialRuntime)("static-build", buildA.use)) {
|
|
@@ -177774,7 +177783,7 @@ Please ensure that ${cmd(err.path)} is properly installed`;
|
|
|
177774
177783
|
return defaults;
|
|
177775
177784
|
}
|
|
177776
177785
|
}
|
|
177777
|
-
if (
|
|
177786
|
+
if (shouldUseExperimentalBackends(frameworkSlug)) {
|
|
177778
177787
|
return "npx @vercel/cervel dev";
|
|
177779
177788
|
}
|
|
177780
177789
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vercel",
|
|
3
|
-
"version": "50.10.
|
|
3
|
+
"version": "50.10.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"preferGlobal": true,
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -28,26 +28,26 @@
|
|
|
28
28
|
"esbuild": "0.27.0",
|
|
29
29
|
"form-data": "^4.0.0",
|
|
30
30
|
"jose": "5.9.6",
|
|
31
|
-
"@vercel/backends": "0.0.
|
|
32
|
-
"@vercel/build-utils": "13.2.16",
|
|
31
|
+
"@vercel/backends": "0.0.26",
|
|
33
32
|
"@vercel/detect-agent": "1.1.0",
|
|
34
|
-
"@vercel/
|
|
35
|
-
"@vercel/elysia": "0.1.
|
|
36
|
-
"@vercel/
|
|
33
|
+
"@vercel/build-utils": "13.2.17",
|
|
34
|
+
"@vercel/elysia": "0.1.28",
|
|
35
|
+
"@vercel/express": "0.1.37",
|
|
36
|
+
"@vercel/fastify": "0.1.31",
|
|
37
37
|
"@vercel/go": "3.3.4",
|
|
38
|
-
"@vercel/
|
|
39
|
-
"@vercel/
|
|
38
|
+
"@vercel/h3": "0.1.37",
|
|
39
|
+
"@vercel/hono": "0.2.31",
|
|
40
40
|
"@vercel/hydrogen": "1.3.5",
|
|
41
|
-
"@vercel/koa": "0.1.
|
|
41
|
+
"@vercel/koa": "0.1.11",
|
|
42
|
+
"@vercel/nestjs": "0.2.32",
|
|
42
43
|
"@vercel/next": "4.15.21",
|
|
43
|
-
"@vercel/node": "5.5.
|
|
44
|
-
"@vercel/
|
|
44
|
+
"@vercel/node": "5.5.29",
|
|
45
|
+
"@vercel/python": "6.5.1",
|
|
45
46
|
"@vercel/redwood": "2.4.9",
|
|
46
|
-
"@vercel/python": "6.5.0",
|
|
47
47
|
"@vercel/remix-builder": "5.5.10",
|
|
48
48
|
"@vercel/ruby": "2.2.5",
|
|
49
49
|
"@vercel/rust": "1.0.5",
|
|
50
|
-
"@vercel/static-build": "2.8.
|
|
50
|
+
"@vercel/static-build": "2.8.30"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"@alex_neo/jest-expect-message": "1.0.5",
|
|
@@ -173,12 +173,12 @@
|
|
|
173
173
|
"xdg-app-paths": "5.1.0",
|
|
174
174
|
"yauzl-promise": "2.1.3",
|
|
175
175
|
"@vercel-internals/constants": "1.0.4",
|
|
176
|
-
"@vercel-internals/get-package-json": "1.0.0",
|
|
177
176
|
"@vercel-internals/types": "3.0.6",
|
|
178
|
-
"@vercel/
|
|
179
|
-
"@vercel/
|
|
177
|
+
"@vercel-internals/get-package-json": "1.0.0",
|
|
178
|
+
"@vercel/client": "17.2.32",
|
|
180
179
|
"@vercel/frameworks": "3.16.1",
|
|
181
|
-
"@vercel/
|
|
180
|
+
"@vercel/error-utils": "2.0.3",
|
|
181
|
+
"@vercel/fs-detectors": "5.7.22",
|
|
182
182
|
"@vercel/routing-utils": "5.3.2"
|
|
183
183
|
},
|
|
184
184
|
"scripts": {
|