diff --git a/src/commands/deploy/deploy.ts b/src/commands/deploy/deploy.ts index 5b847a8654d..2989487b97e 100644 --- a/src/commands/deploy/deploy.ts +++ b/src/commands/deploy/deploy.ts @@ -816,9 +816,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 bb7bb5e9086..6cc948f246a 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 } = {