1
0

Do not rewrite ketr.ketran out of the path when proxied to server

This commit is contained in:
James Ketr 2025-09-27 14:07:13 -07:00
parent 994e8f890a
commit 3c2c92eb79

View File

@ -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