From f47175487623c1e005ea2e3328e570b95ab26a90 Mon Sep 17 00:00:00 2001 From: Ivan Zarea Date: Thu, 23 Oct 2025 17:11:27 +0200 Subject: [PATCH 1/2] fix: always add the url to json output --- src/commands/deploy/deploy.ts | 4 +--- tests/integration/commands/deploy/deploy.test.ts | 2 ++ 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/commands/deploy/deploy.ts b/src/commands/deploy/deploy.ts index d3a13193fc4..a262781f71d 100644 --- a/src/commands/deploy/deploy.ts +++ b/src/commands/deploy/deploy.ts @@ -793,9 +793,7 @@ const printResults = ({ logs: results.logsUrl, function_logs: results.functionLogsUrl, edge_function_logs: results.edgeFunctionLogsUrl, - } - if (deployToProduction) { - jsonData.url = results.siteUrl + url: results.siteUrl, } if (uploadSourceZip) { diff --git a/tests/integration/commands/deploy/deploy.test.ts b/tests/integration/commands/deploy/deploy.test.ts index 03c3caf8ac8..f2a26e5834c 100644 --- a/tests/integration/commands/deploy/deploy.test.ts +++ b/tests/integration/commands/deploy/deploy.test.ts @@ -57,6 +57,7 @@ type Deploy = { logs: string function_logs: string edge_function_logs: string + url: string } const validateDeploy = async ({ @@ -76,6 +77,7 @@ const validateDeploy = async ({ expect(deploy.logs).toBeTruthy() expect(deploy.function_logs).toBeTruthy() expect(deploy.edge_function_logs).toBeTruthy() + expect(deploy.url).toBeTruthy() expect(deploy.site_name).toEqual(siteName) await validateContent({ siteUrl: deploy.deploy_url, path: '', content }) From a4997ac4e8b3d60136aa910594c09954f3e8b193 Mon Sep 17 00:00:00 2001 From: Ivan Zarea Date: Thu, 23 Oct 2025 19:03:20 +0200 Subject: [PATCH 2/2] Update tests/integration/commands/deploy/deploy.test.ts Co-authored-by: Philippe Serhal --- tests/integration/commands/deploy/deploy.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/integration/commands/deploy/deploy.test.ts b/tests/integration/commands/deploy/deploy.test.ts index f2a26e5834c..07fedeac92e 100644 --- a/tests/integration/commands/deploy/deploy.test.ts +++ b/tests/integration/commands/deploy/deploy.test.ts @@ -80,7 +80,7 @@ const validateDeploy = async ({ expect(deploy.url).toBeTruthy() expect(deploy.site_name).toEqual(siteName) - await validateContent({ siteUrl: deploy.deploy_url, path: '', content }) + await validateContent({ siteUrl: deploy.deploy_url, url: deploy.siteUrl, path: '', content }) } const context: { account: unknown; siteId: string } = {