From c0392a37513771238c907c94957c36d09be81a93 Mon Sep 17 00:00:00 2001 From: Ceci Date: Fri, 16 Feb 2024 20:18:53 -0600 Subject: [PATCH] fix: correct proxy typescript documentation --- 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',