Skip to content

Commit ef541a6

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

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

  • packages/nuxi/src/commands

‎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=typeofargs.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)