From ba2a5d5966aa9b68bab63c042666b3a28c1905d6 Mon Sep 17 00:00:00 2001 From: Amirhossein Akbari Date: Sun, 13 Oct 2024 12:29:37 +0200 Subject: [PATCH] docs: add references to Vite DevServer Proxy documentation (#58077) PR Close #58077 --- adev/src/content/tools/cli/serve.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adev/src/content/tools/cli/serve.md b/adev/src/content/tools/cli/serve.md index c288f008cc4..448b952e150 100644 --- a/adev/src/content/tools/cli/serve.md +++ b/adev/src/content/tools/cli/serve.md @@ -74,7 +74,7 @@ For example, to divert all calls for `http://localhost:4200/api` to a server run 1. To run the development server with this proxy configuration, call `ng serve`. Edit the proxy configuration file to add configuration options; following are some examples. -For a description of all options, see [webpack DevServer documentation](https://webpack.js.org/configuration/dev-server/#devserverproxy). +For a detailed description of all options, refer to the [webpack DevServer documentation](https://webpack.js.org/configuration/dev-server/#devserverproxy) when using `@angular-devkit/build-angular:browser`, or the [Vite DevServer documentation](https://vite.dev/config/server-options#server-proxy) when using `@angular-devkit/build-angular:browser-esbuild` or `@angular-devkit/build-angular:application`. NOTE: If you edit the proxy configuration file, you must relaunch the `ng serve` process to make your changes effective.