Skip to content

Commit f71a14e

Browse files
author
Lasim
committed
fix(gateway): update default backend URL for login command to use cloud-api
1 parent d073cab commit f71a14e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

services/gateway/src/commands/login.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export function registerLoginCommand(program: Command) {
1414
.command('login')
1515
.description('Authenticate with DeployStack cloud')
1616
.option('--no-browser', 'Skip automatic browser opening')
17-
.option('--url <url>', 'DeployStack backend URL (for development)', 'https://cloud.deploystack.io')
17+
.option('--url <url>', 'DeployStack backend URL (for development)', 'https://cloud-api.deploystack.io')
1818
.action(async (options) => {
1919
const storage = new CredentialStorage();
2020
const oauth = new OAuth2Client({
@@ -34,7 +34,7 @@ export function registerLoginCommand(program: Command) {
3434

3535
console.log(chalk.blue('🔐 Starting authentication flow...'));
3636

37-
if (options.url !== 'https://cloud.deploystack.io') {
37+
if (options.url !== 'https://cloud-api.deploystack.io') {
3838
console.log(chalk.yellow(`🔧 Using development server: ${options.url}`));
3939
}
4040

@@ -146,7 +146,7 @@ export function registerLoginCommand(program: Command) {
146146
console.log(chalk.gray(` deploystack mcp - Manage MCP server configurations`));
147147
console.log(chalk.gray(` deploystack start - Start the gateway server`));
148148

149-
if (options.url !== 'https://cloud.deploystack.io') {
149+
if (options.url !== 'https://cloud-api.deploystack.io') {
150150
console.log(chalk.yellow(` ⚠️ For MCP changes, visit: ${options.url}`));
151151
}
152152

@@ -174,7 +174,7 @@ export function registerLoginCommand(program: Command) {
174174
break;
175175
case 'NETWORK_ERROR':
176176
console.log(chalk.yellow('💡 Check your internet connection and try again'));
177-
if (options.url !== 'https://cloud.deploystack.io') {
177+
if (options.url !== 'https://cloud-api.deploystack.io') {
178178
console.log(chalk.yellow(`💡 Make sure your development server is running at ${options.url}`));
179179
}
180180
break;

0 commit comments

Comments
 (0)