@@ -11,12 +11,12 @@ export default function () {
1111 . filter ( ( ni ) => ni ?. family === 'IPv4' && ! ni ?. internal )
1212 . map ( ( ni ) => ni ! . address )
1313 . shift ( ) ;
14- const publicHost = `${ firstLocalIp } :4200 ` ;
14+ const publicHost = `${ firstLocalIp } ` ;
1515 const localAddress = `http://${ publicHost } ` ;
1616
1717 return Promise . resolve ( )
1818 . then ( ( ) => ngServe ( '--host=0.0.0.0' , `--public-host=${ publicHost } ` ) )
19- . then ( ( ) => fetch ( localAddress ) )
19+ . then ( ( port ) => fetch ( ` ${ localAddress } : ${ port } ` ) )
2020 . then ( ( response ) => response . text ( ) )
2121 . then ( ( body ) => {
2222 if ( ! body . match ( / < a p p - r o o t > < \/ a p p - r o o t > / ) ) {
@@ -25,7 +25,7 @@ export default function () {
2525 } )
2626 . then ( ( ) => killAllProcesses ( ) )
2727 . then ( ( ) => ngServe ( '--host=0.0.0.0' , `--disable-host-check` ) )
28- . then ( ( ) => fetch ( localAddress ) )
28+ . then ( ( port ) => fetch ( ` ${ localAddress } : ${ port } ` ) )
2929 . then ( ( response ) => response . text ( ) )
3030 . then ( ( body ) => {
3131 if ( ! body . match ( / < a p p - r o o t > < \/ a p p - r o o t > / ) ) {
@@ -35,7 +35,7 @@ export default function () {
3535
3636 . then ( ( ) => killAllProcesses ( ) )
3737 . then ( ( ) => ngServe ( '--host=0.0.0.0' , `--public-host=${ localAddress } ` ) )
38- . then ( ( ) => fetch ( localAddress ) )
38+ . then ( ( port ) => fetch ( ` ${ localAddress } : ${ port } ` ) )
3939 . then ( ( response ) => response . text ( ) )
4040 . then ( ( body ) => {
4141 if ( ! body . match ( / < a p p - r o o t > < \/ a p p - r o o t > / ) ) {
@@ -44,7 +44,7 @@ export default function () {
4444 } )
4545 . then ( ( ) => killAllProcesses ( ) )
4646 . then ( ( ) => ngServe ( '--host=0.0.0.0' , `--public-host=${ firstLocalIp } ` ) )
47- . then ( ( ) => fetch ( localAddress ) )
47+ . then ( ( port ) => fetch ( ` ${ localAddress } : ${ port } ` ) )
4848 . then ( ( response ) => response . text ( ) )
4949 . then ( ( body ) => {
5050 if ( ! body . match ( / < a p p - r o o t > < \/ a p p - r o o t > / ) ) {
0 commit comments