Skip to content

fix(@angular/ssr): prioritize options over environment variables in AngularNodeAppEngine#33352

Merged
alan-agius4 merged 1 commit into
angular:mainfrom
alan-agius4:app-engine
Jun 11, 2026
Merged

fix(@angular/ssr): prioritize options over environment variables in AngularNodeAppEngine#33352
alan-agius4 merged 1 commit into
angular:mainfrom
alan-agius4:app-engine

Conversation

@alan-agius4

Copy link
Copy Markdown
Collaborator

Prioritize constructor options over environment variables when initializing the AngularNodeAppEngine. Previously, environment variables took priority and blindly overrode the constructor options if they were defined in the environment. Now, explicit constructor options act as the override, while the environment variables serve as a fallback.

…ngularNodeAppEngine

Prioritize constructor options over environment variables when initializing the AngularNodeAppEngine. Previously, environment variables took priority and blindly overrode the constructor options if they were defined in the environment. Now, explicit constructor options act as the override, while the environment variables serve as a fallback.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Code Review

This pull request updates the AngularNodeAppEngine constructor to prioritize options passed as arguments over environment variables for allowedHosts and trustProxyHeaders. The reviewer recommends adding unit tests to verify this prioritization and fallback behavior, providing a structured code example for the tests.

Comment thread packages/angular/ssr/node/src/app-engine.ts
@alan-agius4 alan-agius4 added action: review The PR is still awaiting reviews from at least one requested reviewer target: lts This PR is targeting a version currently in long-term support target: patch This PR is targeted for the next patch release and removed target: lts This PR is targeting a version currently in long-term support labels Jun 11, 2026
@hawkgs hawkgs removed the action: review The PR is still awaiting reviews from at least one requested reviewer label Jun 11, 2026
@alan-agius4 alan-agius4 added the action: merge The PR is ready for merge by the caretaker label Jun 11, 2026
@alan-agius4 alan-agius4 merged commit 5875b60 into angular:main Jun 11, 2026
70 of 71 checks passed
@alan-agius4 alan-agius4 deleted the app-engine branch June 11, 2026 16:46
@alan-agius4

Copy link
Copy Markdown
Collaborator Author

This PR was merged into the repository. The changes were merged into the following branches:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

action: merge The PR is ready for merge by the caretaker area: @angular/ssr target: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants