@@ -81,10 +81,9 @@ module.exports = class SetupTachyonCommands extends CLICommandBase {
81
81
config . variant = await this . _pickVariantStep ( config ) ; // step 4
82
82
}
83
83
84
- const isStaging = settings . apiUrl . includes ( 'staging' ) ;
85
84
config . apiServer = settings . apiUrl ;
86
- config . server = isStaging ? 'https://host-connect.staging.particle.io' : 'https://host-connect.particle.io' ;
87
- config . verbose = isStaging ; // Extra logging if connected to staging
85
+ config . server = settings . isStaging ? 'https://host-connect.staging.particle.io' : 'https://host-connect.particle.io' ;
86
+ config . verbose = settings . isStaging ; // Extra logging if connected to staging
88
87
89
88
config . packagePath = await this . _downloadStep ( config ) ; // step 5
90
89
config . registrationCode = await this . _registerDeviceStep ( config ) ; // step 6
@@ -334,6 +333,7 @@ module.exports = class SetupTachyonCommands extends CLICommandBase {
334
333
async _finalStep ( flashSuccessful , config ) { // TODO (hmontero): once we have the device in the cloud, we should show the device id
335
334
if ( flashSuccessful ) {
336
335
const { product } = await this . api . getProduct ( { product : config . productId } ) ;
336
+ const consoleUrl = `https://console${ settings . isStaging ? '.staging' : '' } .particle.io`
337
337
if ( config . variant === 'desktop' ) {
338
338
this . _formatAndDisplaySteps (
339
339
`All done! Your Tachyon device is ready to boot to the desktop and will automatically connect to Wi-Fi.${ os . EOL } ${ os . EOL } ` +
@@ -348,7 +348,7 @@ module.exports = class SetupTachyonCommands extends CLICommandBase {
348
348
` - Run all system services, including the desktop if an HDMI monitor is connected.${ os . EOL } ${ os . EOL } ` +
349
349
`For more information about Tachyon, visit our developer site at: https://developer.particle.io!${ os . EOL } ` +
350
350
`${ os . EOL } ` +
351
- `View your device on the Particle Console at: https://console.particle.io /${ product . slug } ${ os . EOL } ` ,
351
+ `View your device on the Particle Console at: ${ consoleUrl } /${ product . slug } ${ os . EOL } ` ,
352
352
9
353
353
) ;
354
354
} else {
@@ -360,7 +360,7 @@ module.exports = class SetupTachyonCommands extends CLICommandBase {
360
360
` - Run all system services, including battery charging${ os . EOL } ${ os . EOL } ` +
361
361
`For more information about Tachyon, visit our developer site at: https://developer.particle.io!${ os . EOL } ` +
362
362
`${ os . EOL } ` +
363
- `View your device on the Particle Console at: https://console.particle.io /${ product . slug } ${ os . EOL } ` ,
363
+ `View your device on the Particle Console at: ${ consoleUrl } /${ product . slug } ${ os . EOL } ` ,
364
364
9
365
365
) ;
366
366
}
0 commit comments