move api to /api

This commit is contained in:
2024-01-25 18:09:14 +01:00
parent ea3f98c1d1
commit e6c845a22a
13 changed files with 59 additions and 85 deletions

View File

@@ -10,6 +10,14 @@ 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,
},
},
},
});
};