build: automatically select a random available port when running adev locally (#63740)

Previously we relied on the default port of 4200, but if it was already in use then we would run into issues where the cli provided a prompt which we were unable to respond to. Instead we now request port 0 which will automatically find an available port.

PR Close #63740
This commit is contained in:
Joey Perrott
2025-09-11 18:30:19 +00:00
committed by Jessica Janiuk
parent 50b3e9f4c4
commit 00b87a7c26
2 changed files with 5 additions and 1 deletions
+4
View File
@@ -146,6 +146,10 @@ ng_application(
ng_config = ":ng_config",
node_modules = "//adev:node_modules",
project_name = "angular-dev",
serve_args = config_based_architect_flags + [
"--port",
"0",
],
)
ng_test(