Do not rewrite ketr.ketran out of the path when proxied to server
This commit is contained in:
parent
994e8f890a
commit
3c2c92eb79
@ -33,7 +33,8 @@ export default defineConfig({
|
|||||||
'/ketr.ketran/api': {
|
'/ketr.ketran/api': {
|
||||||
target: 'http://peddlers-server:8930',
|
target: 'http://peddlers-server:8930',
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
rewrite: (path) => path.replace(/^\/ketr.ketran/, '')
|
ws: true,
|
||||||
|
// rewrite: (path) => path.replace(/^\/ketr.ketran/, '')
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// HMR options: allow overriding host/port/protocol from env so external
|
// HMR options: allow overriding host/port/protocol from env so external
|
||||||
|
Loading…
x
Reference in New Issue
Block a user