Starting Angular 19, you can pass --define KEY=VALUE to pass values to the application at build time without going through files.
--define KEY=VALUE
It's documented here.