Skip to content

Commit 8f0a507

Browse files
authored
refactor: use http-proxy-3 (#2081)
1 parent 31d91a1 commit 8f0a507

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

config/preview-options.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ TLS + HTTP/2 を有効にします。
8080

8181
プレビューサーバーのカスタムプロキシのルールを設定します。`{ key: options }` のペアのオブジェクトが必要です。キーが `^` で始まる場合は `RegExp` として解釈されます。プロキシのインスタンスにアクセスするには `configure` オプションを使用します。
8282

83-
[`http-proxy`](https://github.com/http-party/node-http-proxy) を使用します。全オプションは[こちら](https://github.com/http-party/node-http-proxy#options)
83+
[`http-proxy-3`](https://github.com/sagemathinc/http-proxy-3) を使用します。全オプションは[こちら](https://github.com/sagemathinc/http-proxy-3#options)
8484

8585
## preview.cors
8686

config/server-options.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ export default defineConfig({
122122

123123
相対的でない [`base`](/config/shared-options.md#base) を使用する場合、各キーの先頭に `base` を付けなければならないことに注意してください。
124124

125-
[`http-proxy`](https://github.com/http-party/node-http-proxy#options) を拡張します。他のオプションは[こちら](https://github.com/vitejs/vite/blob/main/packages/vite/src/node/server/middlewares/proxy.ts#L13)
125+
[`http-proxy-3`](https://github.com/sagemathinc/http-proxy-3#options) を拡張します。他のオプションは[こちら](https://github.com/vitejs/vite/blob/main/packages/vite/src/node/server/middlewares/proxy.ts#L13)
126126

127127
場合によっては、基盤となる開発サーバーを設定したいこともあるでしょう(例: 内部の [connect](https://github.com/senchalabs/connect) アプリにカスタムミドルウェアを追加する場合など)。そのためには、独自の [plugin](/guide/using-plugins.html) を書き、[configureServer](/guide/api-plugin.html#configureserver) 関数を使用する必要があります。
128128

0 commit comments

Comments
 (0)