File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -50,15 +50,15 @@ export function serve(context?: BuildContext) {
50
50
}
51
51
52
52
function onReady ( config : ServeConfig , context : BuildContext ) {
53
+ const host = config . host === '0.0.0.0' ? 'localhost' : config . host ;
53
54
if ( config . launchBrowser || config . launchLab ) {
54
- const openOptions : string [ ] = [ `http://${ config . host } :${ config . httpPort } ` ]
55
+ const openOptions : string [ ] = [ `http://${ host } :${ config . httpPort } ` ]
55
56
. concat ( launchLab ( context ) ? [ IONIC_LAB_URL ] : [ ] )
56
57
. concat ( browserOption ( context ) ? [ browserOption ( context ) ] : [ ] )
57
58
. concat ( platformOption ( context ) ? [ '?ionicplatform=' , platformOption ( context ) ] : [ ] ) ;
58
59
59
60
open ( openOptions . join ( '' ) , browserToLaunch ( context ) ) ;
60
61
}
61
- const host = config . host === '0.0.0.0' ? 'localhost' : config . host ;
62
62
Logger . info ( `dev server running: http://${ host } :${ config . httpPort } /` , 'green' , true ) ;
63
63
Logger . newLine ( ) ;
64
64
}
You can’t perform that action at this time.
0 commit comments