fix(ocme): corrected the urls for ocme

This commit is contained in:
2025-10-26 10:39:30 -05:00
parent f90a975a50
commit f078cd6ceb
2 changed files with 6 additions and 1 deletions

View File

@@ -52,7 +52,7 @@ export default function OcmeCycleCount() {
} }
toast.success(`Cycle count started`); toast.success(`Cycle count started`);
try { try {
const res = await axios.post("/ocme/api/v1/cycleCount", data, { const res = await axios.post("/lst/old/ocme/api/v1/cycleCount", data, {
headers: { Authorization: `Bearer ${token}` }, headers: { Authorization: `Bearer ${token}` },
}); });

View File

@@ -62,6 +62,11 @@ export default defineConfig({
changeOrigin: true, changeOrigin: true,
//rewrite: (path) => path.replace(/^\/lst\/d/, "/"), //rewrite: (path) => path.replace(/^\/lst\/d/, "/"),
}, },
"/ocme": {
target: `http://localhost:${Number(process.env.VITE_PORT || 4000)}`,
changeOrigin: true,
secure: false,
},
}, },
}, },
}); });