Skip to content

Commit abf766e

Browse files
docs: correct proxy shorthand example (#15938)
1 parent 95fe5a7 commit abf766e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/vite/src/node/http.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ export interface CommonServerOptions {
4343
* ``` js
4444
* module.exports = {
4545
* proxy: {
46-
* // string shorthand
47-
* '/foo': 'http://localhost:4567/foo',
46+
* // string shorthand: /foo -> http://localhost:4567/foo
47+
* '/foo': 'http://localhost:4567',
4848
* // with options
4949
* '/api': {
5050
* target: 'http://jsonplaceholder.typicode.com',

0 commit comments

Comments
 (0)