Skip to content

Conversation

@clydin
Copy link
Member

@clydin clydin commented May 8, 2023

When using the esbuild-based browser application builder with the development server, an underlying Vite server is used. The Vite server currently does not support glob-based entries for the proxy configuration. They must either be prefix strings or regular expressions. The Webpack-based development server, however, does support globs. To remove the need to have different proxy configuration files for the two servers, the entries will now be normalized to regular expressions when using the Vite server. This allows existing proxy configurations to work without modification.

(cherry picked from commit 892fcc6)

…ries for esbuild builder

When using the esbuild-based browser application builder with the development server, an
underlying Vite server is used. The Vite server currently does not support glob-based entries
for the proxy configuration. They must either be prefix strings or regular expressions. The
Webpack-based development server, however, does support globs. To remove the need to have
different proxy configuration files for the two servers, the entries will now be normalized
to regular expressions when using the Vite server. This allows existing proxy configurations
to work without modification.

(cherry picked from commit 892fcc6)
@clydin clydin added the target: patch This PR is targeted for the next patch release label May 8, 2023
@clydin clydin requested a review from alan-agius4 May 8, 2023 16:20
@clydin clydin added the action: merge The PR is ready for merge by the caretaker label May 8, 2023
@angular-robot angular-robot bot merged commit 2967705 into angular:16.0.x May 8, 2023
@clydin clydin deleted the esbuild/proxy-16.0.x branch May 8, 2023 16:45
@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 Jun 8, 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.

2 participants