remove vite proxy

This commit is contained in:
2024-01-14 21:20:46 +01:00
parent 4bd7dd68c5
commit be69093c1d
2 changed files with 4 additions and 19 deletions

View File

@@ -10,21 +10,6 @@ export default ({mode}) => {
server: {
host: process.env.VITE_INT_HOST,
port: process.env.VITE_INT_PORT,
proxy: {
// $VITE_URL/api* -> $VITE_API_URL/api*
"/api": {
target: process.env.VITE_API_URL,
changeOrigin: true,
rewrite: (path) => path.replace(/^\/api/, ""),
},
// $VITE_URL/auth-api* -> $VITE_AUTH_URL*
"^/auth-api": {
target: process.env.VITE_AUTH_URL,
changeOrigin: true,
secure: true,
rewrite: (path) => path.replace(/^\/auth-api/, ""),
},
},
},
});
};