The protractor.conf.js file is meant to offer a configuration for our e2e tests. The default which come with each new angular-cli app is very good and works really well. We shouldn't extend it unless we expect more.
Although it works well on localhost, what about the CI server?
On this post I wont explain what kind of configuration you might need for your CI, but how to separate the configuration and how to use it
You will need 3 steps:
On the CI server, you should use the e2e script from your package.json file (yarn e2e or npm run e2e).
During development, you can use the local-e2e.
Spot the --protractorConfig option in the package.json which tells which configuration file to use.