Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions src/commands/deploy/deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
4 changes: 3 additions & 1 deletion tests/integration/commands/deploy/deploy.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
logs: string
function_logs: string
edge_function_logs: string
url: string
}

const validateDeploy = async ({
Expand All @@ -76,9 +77,10 @@
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 })

Check failure on line 83 in tests/integration/commands/deploy/deploy.test.ts

View workflow job for this annotation

GitHub Actions / typecheck

Property 'siteUrl' does not exist on type 'Deploy'.

Check failure on line 83 in tests/integration/commands/deploy/deploy.test.ts

View workflow job for this annotation

GitHub Actions / typecheck

Object literal may only specify known properties, and 'url' does not exist in type '{ content?: string | undefined; headers?: Record<string, string> | undefined; path: string; pathname?: string | undefined; siteUrl: string; }'.
}

const context: { account: unknown; siteId: string } = {
Expand Down
Loading