mirror of
https://github.com/vitejs/vite.git
synced 2024-11-21 14:48:41 +00:00
docs(server-options): fix RegEx -> RegExp (#17814)
This commit is contained in:
parent
6aa220607b
commit
11644f4e37
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user