Commit 2361e61
committed
fix: propagate resolved port to build when default port is unavailable
When the default port (8081) is busy and the user accepts an alternative
port, the resolved port was only used to start Metro but not propagated
to args.port. This caused the iOS build (via RCT_METRO_PORT env var)
and Android build (via -PreactNativeDevServerPort and adb reverse) to
still use the original port, so the app would fail to connect to Metro.1 parent b762402 commit 2361e61
2 files changed
Lines changed: 8 additions & 0 deletions
File tree
- packages
- cli-platform-android/src/commands/runAndroid
- cli-platform-apple/src/commands/runCommand
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
73 | 77 | | |
74 | 78 | | |
75 | 79 | | |
| |||
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
127 | 131 | | |
128 | 132 | | |
129 | 133 | | |
| |||
0 commit comments