vercel 48.10.6 → 48.10.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 +5 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -146551,7 +146551,7 @@ async function writeBuildResultV3(args2) {
|
|
|
146551
146551
|
} = args2;
|
|
146552
146552
|
const { output: output2 } = buildResult;
|
|
146553
146553
|
const routesJsonPath = (0, import_path21.join)(workPath, ".vercel", "routes.json");
|
|
146554
|
-
if ((0, import_build_utils11.isBackendBuilder)(build2) && (0, import_fs_extra12.existsSync)(routesJsonPath)) {
|
|
146554
|
+
if (((0, import_build_utils11.isBackendBuilder)(build2) || build2.use === "@vercel/python") && (0, import_fs_extra12.existsSync)(routesJsonPath)) {
|
|
146555
146555
|
try {
|
|
146556
146556
|
const newOutput = {
|
|
146557
146557
|
index: output2
|
|
@@ -148889,7 +148889,7 @@ async function doBuild(client2, project, buildsJson, cwd, outputDir, span, stand
|
|
|
148889
148889
|
});
|
|
148890
148890
|
}
|
|
148891
148891
|
}
|
|
148892
|
-
if ("output" in buildResult && buildResult.output && (0, import_build_utils13.isBackendBuilder)(build2)) {
|
|
148892
|
+
if ("output" in buildResult && buildResult.output && ((0, import_build_utils13.isBackendBuilder)(build2) || build2.use === "@vercel/python")) {
|
|
148893
148893
|
const routesJsonPath = (0, import_path27.join)(workPath, ".vercel", "routes.json");
|
|
148894
148894
|
if ((0, import_fs_extra18.existsSync)(routesJsonPath)) {
|
|
148895
148895
|
try {
|
|
@@ -151045,7 +151045,9 @@ async function getDeploymentUrlAndToken(client2, commandName, path11, options) {
|
|
|
151045
151045
|
output_manager_default.error("Failed to get project information");
|
|
151046
151046
|
return 1;
|
|
151047
151047
|
}
|
|
151048
|
-
const
|
|
151048
|
+
const preferredAlias = linkedProject.project.targets?.production?.alias?.[0];
|
|
151049
|
+
const backupAlias = linkedProject.project.latestDeployments?.[0]?.url;
|
|
151050
|
+
const target = preferredAlias || backupAlias;
|
|
151049
151051
|
let baseUrl;
|
|
151050
151052
|
if (deploymentFlag) {
|
|
151051
151053
|
const accountId = scope.team?.id || scope.user.id;
|