Skip to content

Conversation

clydin
Copy link
Member

@clydin clydin commented Aug 31, 2023

The development server proxy configuration file for Webpack supports a pathRewrite field that is not directly supported by the underlying Vite development server when using the application or esbuild- browser builders. To provide equivalent support, especially for JSON file-based proxy configurations, the pathRewrite field is now converted internally to a proxy rewrite function.

Fixes: #25562

…ite field in Vite-based server

The development server proxy configuration file for Webpack supports a `pathRewrite` field that is
not directly supported by the underlying Vite development server when using the application or esbuild-
browser builders. To provide equivalent support, especially for JSON file-based proxy configurations,
the `pathRewrite` field is now converted internally to a proxy `rewrite` function.
@clydin clydin added the target: patch This PR is targeted for the next patch release label Aug 31, 2023
@clydin clydin marked this pull request as ready for review September 8, 2023 16:09
@alan-agius4 alan-agius4 added the action: merge The PR is ready for merge by the caretaker label Sep 11, 2023
@alan-agius4 alan-agius4 merged commit 7d3fd22 into angular:main Sep 11, 2023
@clydin clydin deleted the esbuild/dev-server-proxy-path-rewrite branch September 11, 2023 11:19
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Oct 12, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker target: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

esbuild dev server proxy doesn't rewrite path
2 participants