Commit c9d4360
fix(@angular-devkit/build-angular):
When using a non-localhost IP, Vite will correctly populate the `network` property of the `server.resolvedUrls` instead of `local`.
Example:
```
ng server --host=127.0.0.2
{ local: [], network: [ 'http://127.0.0.2:4200/' ] }
```
Closes #27327
(cherry picked from commit ee9ec23)Internal server error: Invalid URL when using a non localhost IP1 parent 1a3257a commit c9d4360
File tree
1 file changed
+4
-1
lines changed- packages/angular_devkit/build_angular/src/tools/vite
1 file changed
+4
-1
lines changedLines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
219 | 219 | | |
220 | 220 | | |
221 | 221 | | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
222 | 225 | | |
223 | 226 | | |
224 | | - | |
| 227 | + | |
225 | 228 | | |
226 | 229 | | |
227 | 230 | | |
| |||
0 commit comments