From abf766e939a0f02e5c08959bd101a6c72a29558b Mon Sep 17 00:00:00 2001 From: Ceci Date: Sat, 18 May 2024 02:26:04 -0500 Subject: [PATCH] docs: correct proxy shorthand example (#15938) --- packages/vite/src/node/http.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/vite/src/node/http.ts b/packages/vite/src/node/http.ts index 2039a6c9f75e22..51a063ba800ccf 100644 --- a/packages/vite/src/node/http.ts +++ b/packages/vite/src/node/http.ts @@ -43,8 +43,8 @@ export interface CommonServerOptions { * ``` js * module.exports = { * proxy: { - * // string shorthand - * '/foo': 'http://localhost:4567/foo', + * // string shorthand: /foo -> http://localhost:4567/foo + * '/foo': 'http://localhost:4567', * // with options * '/api': { * target: 'http://jsonplaceholder.typicode.com',