@angular-devkit/build-angular:dev-server accepts an array of hostnames via cli:
ng serve myproject --allowed-hosts "example.com"
but @angular/build:dev-server doesn't (which i believe this project is based on?)
"Error: Unknown argument: example.com"
Workaround:
__VITE_ADDITIONAL_SERVER_ALLOWED_HOSTS=example.com ng serve myproject
Flagging for those wondering like i was (I thought it was drop-in replacement for it but there are slight differences)
Related: Can't use an array of hostnames in --allowedHosts cli parameter in @angular/build:dev-server #33955
@angular-devkit/build-angular:dev-serveraccepts an array of hostnames via cli:ng serve myproject --allowed-hosts "example.com"but
@angular/build:dev-serverdoesn't (which i believe this project is based on?)"Error: Unknown argument: example.com"
Workaround:
Flagging for those wondering like i was (I thought it was drop-in replacement for it but there are slight differences)
Related: Can't use an array of hostnames in --allowedHosts cli parameter in @angular/build:dev-server #33955