Skip to content

Commit a5826b7

Browse files
committed
fix(cli): Wrong endpoint manipulation
1 parent 1a1346b commit a5826b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/cli/lib/commands/push.js.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1032,7 +1032,7 @@ const pushFunction = async ({ functionId, async, returnOnZero } = { returnOnZero
10321032

10331033
failedDeployments.forEach((failed) => {
10341034
const { name, deployment, $id } = failed;
1035-
const failUrl = `${globalConfig.getEndpoint().replace('/v1', '')}/console/project-${localConfig.getProject().projectId}/functions/function-${$id}/deployment-${deployment}`;
1035+
const failUrl = `${globalConfig.getEndpoint().slice(0, -3)}/console/project-${localConfig.getProject().projectId}/functions/function-${$id}/deployment-${deployment}`;
10361036

10371037
error(`Deployment of ${name} has failed. Check at ${failUrl} for more details\n`);
10381038
});

0 commit comments

Comments
 (0)