`cap run` Ignores Server Config

Thanks Ionic team for the work that you do!

Running a Capacitor app via cap run ignores config.server config in capacitor.config.*. In the CapLiveReloadHelper impl, server config is set to

{ url: http://${options.host}:${options.port} }

… and all other config is dropped. It would seem to me as a new Capacitor user that this is neither helpful nor correctly documented.

FWIW, there is a comment above this fn from >1 year ago that mentions to remove this function with the next major release. Is that still a reasonable course of action?

I’m happy to help via opening a suggesting solutions/PR to address this/assisting w/docs/whatever I can do - but figure this may need some discussion first. Thanks again for such a great product.

PS - I believe strongly that there are other issues to resolve w.r.t. live reload which I’m happy to list here but am omitting for the sake of scope.

Best,

Alex

Bumping this. I’m happy to contribute in any way to move this forward.

I would probably open an issue or PR on the repo to start the conversation.