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',