diff --git a/src/commands/dev.ts b/src/commands/dev.ts index ed5d11e1..17438107 100644 --- a/src/commands/dev.ts +++ b/src/commands/dev.ts @@ -69,7 +69,7 @@ const command = defineCommand({ // Fork nuxt dev process const devProxy = await _createDevProxy(nuxtOptions, listenOptions) await _startSubprocess(devProxy, ctx.rawArgs) - return devProxy?.listener?.url + return { listener: devProxy?.listener } } else { // Directly start nuxt dev const { createNuxtDevServer } = await import('../utils/dev') @@ -86,7 +86,7 @@ const command = defineCommand({ listenOptions, ) await devServer.init() - return devServer?.listener?.url + return { listener: devServer?.listener } } }, })