fix(@angular-devkit/build-angular): fix support for proxy.conf.js fil…
…es in ssr-dev-server
This fix activates normalization in loadProxyConfiguration for the ssr-dev-server to support formats beyond JSON. This enhancement follows up on the unified proxy configuration loading introduced in PR #26651. Added a test to confirm js config file functionality.
PR Checklist
Please check to confirm your PR fulfills the following requirements:
- [x] The commit message follows our guidelines: https://github.com/angular/angular-cli/blob/main/CONTRIBUTING.md#-commit-message-guidelines
- [x] Tests for the changes have been added (for bug fixes / features)
- [ ] Docs have been added / updated (for bug fixes / features)
PR Type
What kind of change does this PR introduce?
- [x] Bugfix
- [ ] Feature
- [ ] Code style update (formatting, local variables)
- [ ] Refactoring (no functional changes, no api changes)
- [ ] Build related changes
- [ ] CI related changes
- [ ] Documentation content changes
- [ ] Other... Please describe:
What is the current behavior?
While the JS format proxy configuration is successfully loaded, it is not interpreted correctly due to the lack of normalization.
Issue Number: #26651
What is the new behavior?
The interpretation of the JS format proxy configuration is now correct and the regular expressions generated through the normalization process are accurately passed as filters to the proxy.
Does this PR introduce a breaking change?
- [ ] Yes
- [x] No
Other information
Can we get this merged, please? We need our proxy to be implemented in code, as we need to resolve properties from the environment. So this PR is really helpful to us. Let me know if I can do something to support.
This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.