@@ -11,12 +11,12 @@ export default function () {
11
11
. filter ( ( ni ) => ni ?. family === 'IPv4' && ! ni ?. internal )
12
12
. map ( ( ni ) => ni ! . address )
13
13
. shift ( ) ;
14
- const publicHost = `${ firstLocalIp } :4200 ` ;
14
+ const publicHost = `${ firstLocalIp } ` ;
15
15
const localAddress = `http://${ publicHost } ` ;
16
16
17
17
return Promise . resolve ( )
18
18
. then ( ( ) => ngServe ( '--host=0.0.0.0' , `--public-host=${ publicHost } ` ) )
19
- . then ( ( ) => fetch ( localAddress ) )
19
+ . then ( ( port ) => fetch ( ` ${ localAddress } : ${ port } ` ) )
20
20
. then ( ( response ) => response . text ( ) )
21
21
. then ( ( body ) => {
22
22
if ( ! body . match ( / < a p p - r o o t > < \/ a p p - r o o t > / ) ) {
@@ -25,7 +25,7 @@ export default function () {
25
25
} )
26
26
. then ( ( ) => killAllProcesses ( ) )
27
27
. then ( ( ) => ngServe ( '--host=0.0.0.0' , `--disable-host-check` ) )
28
- . then ( ( ) => fetch ( localAddress ) )
28
+ . then ( ( port ) => fetch ( ` ${ localAddress } : ${ port } ` ) )
29
29
. then ( ( response ) => response . text ( ) )
30
30
. then ( ( body ) => {
31
31
if ( ! body . match ( / < a p p - r o o t > < \/ a p p - r o o t > / ) ) {
@@ -35,7 +35,7 @@ export default function () {
35
35
36
36
. then ( ( ) => killAllProcesses ( ) )
37
37
. then ( ( ) => ngServe ( '--host=0.0.0.0' , `--public-host=${ localAddress } ` ) )
38
- . then ( ( ) => fetch ( localAddress ) )
38
+ . then ( ( port ) => fetch ( ` ${ localAddress } : ${ port } ` ) )
39
39
. then ( ( response ) => response . text ( ) )
40
40
. then ( ( body ) => {
41
41
if ( ! body . match ( / < a p p - r o o t > < \/ a p p - r o o t > / ) ) {
@@ -44,7 +44,7 @@ export default function () {
44
44
} )
45
45
. then ( ( ) => killAllProcesses ( ) )
46
46
. then ( ( ) => ngServe ( '--host=0.0.0.0' , `--public-host=${ firstLocalIp } ` ) )
47
- . then ( ( ) => fetch ( localAddress ) )
47
+ . then ( ( port ) => fetch ( ` ${ localAddress } : ${ port } ` ) )
48
48
. then ( ( response ) => response . text ( ) )
49
49
. then ( ( body ) => {
50
50
if ( ! body . match ( / < a p p - r o o t > < \/ a p p - r o o t > / ) ) {
0 commit comments