We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
--host
1 parent fd1747f commit 5278c9eCopy full SHA for 5278c9e
packages/nuxi/src/dev/utils.ts
@@ -275,8 +275,10 @@ export class NuxtDevServer extends EventEmitter<DevServerEventMap> {
275
const overrides = this.options.listenOverrides || {}
276
277
const port = overrides.port ?? nuxtConfig.devServer?.port
278
+
279
// CLI args use 'host', but ListenOptions uses 'hostname'
- const hostname = overrides.hostname ?? (overrides as any).host ?? nuxtConfig.devServer?.host
280
+ const rawHost = overrides.hostname ?? (overrides as any).host
281
+ const hostname = (rawHost === true ? '' : rawHost) ?? nuxtConfig.devServer?.host
282
283
// Resolve public flag
284
const isPublic = provider === 'codesandbox' || (overrides.public ?? (isPublicHostname(hostname) ? true : undefined))
0 commit comments