Skip to content

Commit

Permalink
docs(server-options): fix RegEx -> RegExp (vitejs#17814)
Browse files Browse the repository at this point in the history
  • Loading branch information
xv2 committed Aug 3, 2024
1 parent 6aa2206 commit 11644f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/config/server-options.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ export default defineConfig({
changeOrigin: true,
rewrite: (path) => path.replace(/^\/api/, ''),
},
// with RegEx: http://localhost:5173/fallback/ -> http://jsonplaceholder.typicode.com/
// with RegExp: http://localhost:5173/fallback/ -> http://jsonplaceholder.typicode.com/
'^/fallback/.*': {
target: 'http://jsonplaceholder.typicode.com',
changeOrigin: true,
Expand Down

0 comments on commit 11644f4

Please sign in to comment.