We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c84d1f0 + bb4f0fd commit e129dc9Copy full SHA for e129dc9
3 files changed
Frontend/.env
@@ -1 +1,2 @@
1
-VITE_API_URL=http://localhost:5000
+VITE_API_URL=http://localhost:5000
2
+VITE_AI_URL=http://localhost:8000
Frontend/.env.production
-VITE_API_URL=http://13.250.231.18:5000
+VITE_API_URL=http://13.250.231.18:5000
+VITE_AI_URL=http://13.250.231.18:8000
Frontend/src/pages/HR/Employee/AddEmployee.jsx
@@ -112,7 +112,7 @@ export default function AddEmployee() {
112
setLoadingState(true);
113
setLoadingText("Extract CV");
114
const { data } = await axios.post(
115
- "http://localhost:8000/cv/extract-data", // 🔥 change to your backend URL
+ `${import.meta.env.VITE_AI_URL || "http://localhost:8000"}/cv/extract-data`,
116
formData,
117
{
118
headers: { "Content-Type": "multipart/form-data" },
0 commit comments