Skip to content
Merged
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: 2 additions & 2 deletions packages/catalyst/src/cli/commands/deploy.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ describe('deployment and event streaming', () => {
'Fetching...',
'Processing...',
'Finalizing...',
'Deployment completed successfully.\n',
'Deployment completed successfully.',
]);
});

Expand Down Expand Up @@ -234,7 +234,7 @@ describe('deployment and event streaming', () => {
'Fetching...',
'Processing...',
'Finalizing...',
'Deployment completed successfully.\n',
'Deployment completed successfully.',
]);

expect(consola.warn).toHaveBeenCalledWith(
Expand Down
8 changes: 5 additions & 3 deletions packages/catalyst/src/cli/commands/deploy.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import AdmZip from 'adm-zip';
import { Command, Option } from 'commander';
import { colorize } from 'consola/utils';
import { access, readdir, readFile } from 'node:fs/promises';
import { join } from 'node:path';
import yoctoSpinner from 'yocto-spinner';
Expand Down Expand Up @@ -289,7 +290,6 @@ export const getDeploymentStatus = async (
}

if (data.deployment_url) {
console.log(data.deployment_url);
deploymentUrl = data.deployment_url;
}
});
Expand All @@ -298,10 +298,12 @@ export const getDeploymentStatus = async (
done = streamDone;
}

spinner.success('Deployment completed successfully.\n');
spinner.success('Deployment completed successfully.');

if (deploymentUrl) {
consola.success(`View your deployment at: ${deploymentUrl}`);
const url = deploymentUrl.startsWith('https://') ? deploymentUrl : `https://${deploymentUrl}`;

consola.success(`View your deployment at: ${colorize('blue', url)}`);
}
};

Expand Down
Loading