Skip to content

Commit ef541a6

Browse files
committed
fix(dev): work around rollup build bug
1 parent 497b606 commit ef541a6

File tree

1 file changed

+7
-6
lines changed
  • packages/nuxi/src/commands

1 file changed

+7
-6
lines changed

packages/nuxi/src/commands/dev.ts

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -392,12 +392,13 @@ function resolveListenOptions(
392392

393393
const _hostname = typeof args.host === 'string'
394394
? args.host
395-
: (args.host === true ? '' : undefined)
396-
?? process.env.NUXT_HOST
397-
?? process.env.NITRO_HOST
398-
?? process.env.HOST
399-
?? (nuxtOptions.devServer?.host || undefined /* for backwards compatibility with previous '' default */)
400-
?? undefined
395+
: args.host === true
396+
? ''
397+
: process.env.NUXT_HOST
398+
?? process.env.NITRO_HOST
399+
?? process.env.HOST
400+
?? (nuxtOptions.devServer?.host || undefined /* for backwards compatibility with previous '' default */)
401+
?? undefined
401402

402403
const _public: boolean | undefined = args.public
403404
?? (_hostname && !['localhost', '127.0.0.1', '::1'].includes(_hostname))

0 commit comments

Comments
 (0)