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..07fedeac92e 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,9 +77,10 @@ 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 }) + await validateContent({ siteUrl: deploy.deploy_url, url: deploy.siteUrl, path: '', content }) } const context: { account: unknown; siteId: string } = {