Skip to content

fix: enhance remote environment configuration handling and error reporting#24815

Merged
sumeyyeKurtulus merged 1 commit intorel-10.0from
getRemoteEnv-error
Feb 6, 2026
Merged

fix: enhance remote environment configuration handling and error reporting#24815
sumeyyeKurtulus merged 1 commit intorel-10.0from
getRemoteEnv-error

Conversation

@maliming
Copy link
Member

@maliming maliming commented Feb 5, 2026

Copilot AI review requested due to automatic review settings February 5, 2026 13:00
@maliming maliming added this to the 10.0-patch-final milestone Feb 5, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR enhances error handling for remote environment configuration in Angular applications by replacing the generic HttpErrorReporterService with a more user-friendly console warning that includes helpful documentation links. The change addresses deployment issues where remote environment configuration failures were silently failing, making troubleshooting difficult.

Changes:

  • Replaced HttpErrorReporterService with console.warn for remote environment fetch errors, including helpful error messages and documentation links (only shown in development mode)
  • Added test coverage for error scenarios when remote environment fetch fails
  • Added comprehensive documentation with IIS and Nginx server configuration examples

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
npm/ng-packs/packages/core/src/lib/utils/environment-utils.ts Replaced HttpErrorReporterService with console.warn for better error messages in dev mode
npm/ng-packs/packages/core/src/lib/tests/environment-utils.spec.ts Added test case for error handling and removed unnecessary mock
docs/en/framework/ui/angular/environment.md Added example configuration and web server setup instructions for IIS and Nginx

@sumeyyeKurtulus sumeyyeKurtulus merged commit b91ebd3 into rel-10.0 Feb 6, 2026
8 of 9 checks passed
@sumeyyeKurtulus sumeyyeKurtulus deleted the getRemoteEnv-error branch February 6, 2026 05:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants