From f7ae771a44598108ee9a0fce74fda22a798ca34c Mon Sep 17 00:00:00 2001 From: Katerina Skroumpelou Date: Mon, 6 Nov 2023 10:56:58 +0200 Subject: [PATCH] feat(dev): return whole listener object --- src/commands/dev.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 } } }, })