From b2f2a267f485fee6739a91ee28276843a09dd543 Mon Sep 17 00:00:00 2001 From: ZhengX <56376387+Megrax@users.noreply.github.com> Date: Wed, 15 Feb 2023 21:54:54 +0800 Subject: [PATCH] docs: provider additional server proxy options (#11828) Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com> --- docs/config/server-options.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/config/server-options.md b/docs/config/server-options.md index c6b884a23becd4..d216bbed486fca 100644 --- a/docs/config/server-options.md +++ b/docs/config/server-options.md @@ -83,7 +83,7 @@ Configure custom proxy rules for the dev server. Expects an object of `{ key: op Note that if you are using non-relative [`base`](/config/shared-options.md#base), you must prefix each key with that `base`. -Uses [`http-proxy`](https://github.com/http-party/node-http-proxy). Full options [here](https://github.com/http-party/node-http-proxy#options). +Extends [`http-proxy`](https://github.com/http-party/node-http-proxy#options). Additional options are [here](https://github.com/vitejs/vite/blob/main/packages/vite/src/node/server/middlewares/proxy.ts#L13). In some cases, you might also want to configure the underlying dev server (e.g. to add custom middlewares to the internal [connect](https://github.com/senchalabs/connect) app). In order to do that, you need to write your own [plugin](/guide/using-plugins.html) and use [configureServer](/guide/api-plugin.html#configureserver) function.