Skip to content

Commit 8e9b13e

Browse files
committed
fix: support --remote again
Resolves #25
1 parent 4e9eaf4 commit 8e9b13e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/module/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,8 @@ export default defineNuxtModule<ModuleOptions>({
6767
...readUser('.nuxtrc').hub,
6868
})
6969

70-
const remoteArg = parseArgs(argv, { remote: { type: 'string' } }).remote as string
70+
let remoteArg = parseArgs(argv, { remote: { type: 'string' } }).remote as string
71+
remoteArg = (remoteArg === '' ? 'true' : remoteArg)
7172
const runtimeConfig = nuxt.options.runtimeConfig
7273
const hub = runtimeConfig.hub = defu(runtimeConfig.hub || {}, options, {
7374
url: process.env.NUXT_HUB_URL || 'https://console.hub.nuxt.com',

0 commit comments

Comments
 (0)