-
Notifications
You must be signed in to change notification settings - Fork 26.6k
Description
Describe the problem that you experienced
This part of documentation https://angular.dev/tools/cli/serve#proxying-to-a-backend-server is incomplete or maybe incorrect. It indicates that Webpack server is used for development and has links to Webpack documentation. However, newer versions of angular seem to be using Vite together with esbuild target. Because of this our proxy config did not work since we used Webpack specific syntax (namely bare '*'). Only after discovering it is actually using Vite we could fix the problem, but lost almost half a day on it. As such, it would be very helpful to explain that Vite is used with esbuild (which is anyway the default for new projects) and provide links to its proxy config.
Enter the URL of the topic with the problem
https://angular.dev/tools/cli/serve#proxying-to-a-backend-server
Describe what you were looking for in the documentation
Trying to figure out why proxying is not working.
Describe the actions that led you to experience the problem
No response
Describe what you want to experience that would fix the problem
Update the documentation with explanation that it is using Vite along with appropriate links to its proxy documentation
Add a screenshot if that helps illustrate the problem
No response
If this problem caused an exception or error, please paste it here
If the problem is browser-specific, please specify the device, OS, browser, and version
Provide any additional information here in as much as detail as you can