Skip to content

Commit

Permalink
docs: correct proxy shorthand example (#15938)
Browse files Browse the repository at this point in the history
  • Loading branch information
cecilia-sanare committed May 18, 2024
1 parent 95fe5a7 commit abf766e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/vite/src/node/http.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit abf766e

Please sign in to comment.