Conversation
Upgrade http-proxy-middleware to support v22 (new HPM version had several breaking changes to address)
Contributor
There was a problem hiding this comment.
Pull request overview
Upgrades the AWX UI development stack to Node.js 22 (replacing Node 20, now EOL) and updates the dev-server proxy integration to work with http-proxy-middleware v4’s API/packaging changes.
Changes:
- Switch Rocky Linux Node.js module from
nodejs:20tonodejs:22in the container build/dev images and ensurenpmis installed where needed. - Upgrade
http-proxy-middlewarefrom3.0.5to4.0.0and refactor the dev proxy wiring to usecreateProxyMiddleware(ESM-safe import). - Update UI Node engine requirement to Node 22.
Reviewed changes
Copilot reviewed 5 out of 6 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| tools/ansible/roles/dockerfile/templates/Dockerfile.j2 | Updates container Node.js module to 22 and installs npm for build/dev images. |
| awx/ui/src/setupProxy.js | Refactors proxy setup to accept injected createProxyMiddleware and use v4 options shape. |
| awx/ui/scripts/start.js | Dynamically imports http-proxy-middleware and passes createProxyMiddleware into dev server config. |
| awx/ui/config/webpackDevServer.config.js | Extends dev server config API to forward createProxyMiddleware into setupProxy. |
| awx/ui/package.json | Bumps Node engine floor to Node 22 and upgrades http-proxy-middleware to v4. |
| awx/ui/package-lock.json | Updates lockfile for http-proxy-middleware v4 and related dependency changes. |
Files not reviewed (1)
- awx/ui/package-lock.json: Language not supported
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
TheWitness
approved these changes
May 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Upgrade to Node 22 as 20 is EOL
Upgrade http-proxy-middleware to support v22 (new HPM version had several breaking changes to address)