vercel 48.10.7 → 48.10.8
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 +8 -0
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -148895,7 +148895,9 @@ async function doBuild(client2, project, buildsJson, cwd, outputDir, span, stand
|
|
|
148895
148895
|
try {
|
|
148896
148896
|
const routesJson = await readJSONFile(routesJsonPath);
|
|
148897
148897
|
if (routesJson && typeof routesJson === "object" && "routes" in routesJson && Array.isArray(routesJson.routes)) {
|
|
148898
|
+
const indexLambda = "index" in buildResult.output ? buildResult.output["index"] : void 0;
|
|
148898
148899
|
const convertedRoutes = [];
|
|
148900
|
+
const convertedOutputs = indexLambda ? { index: indexLambda } : {};
|
|
148899
148901
|
for (const route of routesJson.routes) {
|
|
148900
148902
|
if (typeof route.source !== "string") {
|
|
148901
148903
|
continue;
|
|
@@ -148911,6 +148913,9 @@ async function doBuild(client2, project, buildsJson, cwd, outputDir, span, stand
|
|
|
148911
148913
|
if (route.source === "/") {
|
|
148912
148914
|
continue;
|
|
148913
148915
|
}
|
|
148916
|
+
if (indexLambda) {
|
|
148917
|
+
convertedOutputs[route.source] = indexLambda;
|
|
148918
|
+
}
|
|
148914
148919
|
convertedRoutes.push(newRoute);
|
|
148915
148920
|
}
|
|
148916
148921
|
buildResult.routes = [
|
|
@@ -148918,6 +148923,9 @@ async function doBuild(client2, project, buildsJson, cwd, outputDir, span, stand
|
|
|
148918
148923
|
...convertedRoutes,
|
|
148919
148924
|
{ src: "/(.*)", dest: "/" }
|
|
148920
148925
|
];
|
|
148926
|
+
if (indexLambda) {
|
|
148927
|
+
buildResult.output = convertedOutputs;
|
|
148928
|
+
}
|
|
148921
148929
|
}
|
|
148922
148930
|
} catch (error3) {
|
|
148923
148931
|
output_manager_default.error(`Failed to read routes.json: ${error3}`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vercel",
|
|
3
|
-
"version": "48.10.
|
|
3
|
+
"version": "48.10.8",
|
|
4
4
|
"preferGlobal": true,
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"description": "The command-line interface for Vercel",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"@vercel/blob": "1.0.2",
|
|
25
25
|
"@vercel/build-utils": "13.1.0",
|
|
26
26
|
"@vercel/elysia": "0.1.6",
|
|
27
|
-
"@vercel/express": "0.1.
|
|
27
|
+
"@vercel/express": "0.1.11",
|
|
28
28
|
"@vercel/fastify": "0.1.9",
|
|
29
29
|
"@vercel/fun": "1.2.0",
|
|
30
30
|
"@vercel/go": "3.2.3",
|
|
@@ -40,8 +40,8 @@
|
|
|
40
40
|
"@vercel/static-build": "2.8.8",
|
|
41
41
|
"chokidar": "4.0.0",
|
|
42
42
|
"jose": "5.9.6",
|
|
43
|
-
"@vercel/
|
|
44
|
-
"@vercel/
|
|
43
|
+
"@vercel/detect-agent": "1.0.0",
|
|
44
|
+
"@vercel/backends": "0.0.10"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@alex_neo/jest-expect-message": "1.0.5",
|
|
@@ -170,8 +170,8 @@
|
|
|
170
170
|
"xdg-app-paths": "5.1.0",
|
|
171
171
|
"yauzl-promise": "2.1.3",
|
|
172
172
|
"@vercel-internals/constants": "1.0.4",
|
|
173
|
-
"@vercel-internals/
|
|
174
|
-
"@vercel-internals/
|
|
173
|
+
"@vercel-internals/types": "3.0.6",
|
|
174
|
+
"@vercel-internals/get-package-json": "1.0.0"
|
|
175
175
|
},
|
|
176
176
|
"scripts": {
|
|
177
177
|
"test": "jest --reporters=default --reporters=jest-junit --env node --verbose --bail",
|