Skip to content

Fix proxy-middleware #4490

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 11, 2025
Merged

Conversation

mproffitt
Copy link
Contributor

Closes

What changed?

PR #4413 moved the proxy-middleware across major versions without migrations being applied to .proxyrc.js

This affects redirecting API traffic from the front end to the backend server for both the /v1 and /oauth2 endpoints.

Why was this change made?

To resolve proxying requests to the backend when the backend server is on a different URL

How was this change implemented?

This commit resolves that break by applying the necessary migration to .proxyrc.js

How did you validate the change?

  • run SKIP_UI_BUILD=1 tilt up to bring up the backend service
  • run yarn start to run the front end outside of tilt
  • Observe that the UI can be accessed normally without a blank page being present

Release notes

N/A - Restores original behaviour

Documentation Changes

N/A - Restores original behaviour

PR [weaveworks#4413](weaveworks#4413) moved
the proxy-middleware across major versions without migrations being
applied to `.proxyrc.js`

This affects redirecting API traffic from the front end to the backend
server for both the `/v1` and `/oauth2` endpoints.

This commit resolves that break by applying the necessary migration to
`.proxyrc.js`
@mproffitt mproffitt requested review from gusevda and erikgb January 11, 2025 15:14
@gusevda gusevda merged commit 3028ab5 into weaveworks:main Jan 11, 2025
18 checks passed
@mproffitt mproffitt deleted the fix-proxy-middleware branch January 11, 2025 19:38
This was referenced Jan 15, 2025
This was referenced Feb 4, 2025
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.

2 participants