Repository navigation
Revert: [flutter_tools] Apply web_dev_config.yaml proxy in Wasm/release modes - #193996
flutteractionsbot wants to merge 1 commit into
Conversation
…se modes (flutter#193981)" This reverts commit 9b57590.
There was a problem hiding this comment.
Code Review
This pull request removes the proxy middleware from the release handler pipeline in WebAssetServer and updates the remaining proxy middleware reference to use globals.logger. It also removes the unused devfs_proxy.dart import and deletes the proxy-related tests in web_asset_server_test.dart. No review comments were provided, and there is no additional feedback to provide.
|
Detected the If you add the The "Merge" button is also unlocked. To bypass presubmits as well as the tree status, press the GitHub "Add to Merge Queue". |
|
This revert is failing in exactly the same way that the original PR was failing, so this is not the right fix. |
Reverts: [flutter_tools] Apply web_dev_config.yaml proxy in Wasm/release modes
Initiated by: @flar
Reason for reverting: broke the tree
Original PR Author: @kevmoo
Reviewed By: @harryterkelsen
The original PR description is provided below:
When
flutter runserves web builds usingReleaseAssetServer(--wasm,--profile, or--release),WebAssetServer.startpreviously constructed the Shelf pipeline with onlywaitMiddlewareand omittedproxyMiddleware. As a result, requests matchingweb_dev_config.yamlproxy rules bypassed the proxy and fell back toindex.html(or returned404for non-GETmethods).This change:
proxyMiddleware(proxy, logger)to theReleaseAssetServerShelf pipeline inWebAssetServer.start.loggerparameter toproxyMiddlewarein the DWDS pipeline instead ofglobals.logger.WebAssetServerunit tests verifying proxiedGETandPOSTrequests alongside unmatched SPA route fallback for bothdebug(isWasm: true) andrelease(isWasm: false).Fixes #187482
Pre-launch Checklist
///).