We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
rewrite
1 parent 4e71f2b commit cfe381fCopy full SHA for cfe381f
vite.config.ts
@@ -17,11 +17,11 @@ const serverSettings: CommonServerOptions = {
17
proxy: {
18
'/api/gateway': {
19
target: 'http://localhost:9000',
20
- rewrite: (path: string) => path.replace(/^\/api\/gateway/, ''),
+ rewrite: (url: string) => url.replace(/^\/api\/gateway/, ''),
21
},
22
'/ws/gateway': {
23
24
- rewrite: (path: string) => path.replace(/^\/ws\/gateway/, ''),
+ rewrite: (url: string) => url.replace(/^\/ws\/gateway/, ''),
25
ws: true,
26
27
0 commit comments