Skip to content

Commit 14c3d7a

Browse files
committed
fix: small update
1 parent 0d9a875 commit 14c3d7a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

cli/commands/whoami.mjs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ export default defineCommand({
1111
async setup() {
1212
const config = loadConfig()
1313
if (!config.token) {
14-
consola.log('Not currently logged in.')
14+
consola.info('Not currently logged in.')
1515
return
1616
}
1717

18-
const user = await $api('/user')
18+
const user = await $api('/user').catch(() => null)
1919
if (!user?.name) {
20-
consola.log('Not currently logged in.')
20+
consola.info('Not currently logged in.')
2121
return
2222
}
2323
consola.info(`Logged in as \`${user.name}\``)

cli/utils.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { ofetch } from 'ofetch'
88

99
const CONFIG_DIR = XDGAppPaths('com.nuxt.hub.cli').dataDirs()[0]
1010
const CONFIG_PATH = join(CONFIG_DIR, 'auth.json')
11-
export const NUXT_HUB_URL = process.env.NUXT_HUB_URL || 'http://nuxthub-admin.pages.dev'
11+
export const NUXT_HUB_URL = process.env.NUXT_HUB_URL || 'https://nuxthub-admin.pages.dev'
1212

1313
export function loadConfig() {
1414
try {

0 commit comments

Comments
 (0)