Skip to content

Commit

Permalink
feat(dev): return whole listener object
Browse files Browse the repository at this point in the history
  • Loading branch information
mandarini committed Nov 6, 2023
1 parent 997eb5d commit f7ae771
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/commands/dev.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand All @@ -86,7 +86,7 @@ const command = defineCommand({
listenOptions,
)
await devServer.init()
return devServer?.listener?.url
return { listener: devServer?.listener }
}
},
})
Expand Down

0 comments on commit f7ae771

Please sign in to comment.