Skip to content

Commit e129dc9

Browse files
committed
Merge branch 'dev' of https://github.com/zrahadiz/DevAlign into dev
2 parents c84d1f0 + bb4f0fd commit e129dc9

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

Frontend/.env

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
VITE_API_URL=http://localhost:5000
1+
VITE_API_URL=http://localhost:5000
2+
VITE_AI_URL=http://localhost:8000

Frontend/.env.production

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
VITE_API_URL=http://13.250.231.18:5000
1+
VITE_API_URL=http://13.250.231.18:5000
2+
VITE_AI_URL=http://13.250.231.18:8000

Frontend/src/pages/HR/Employee/AddEmployee.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ export default function AddEmployee() {
112112
setLoadingState(true);
113113
setLoadingText("Extract CV");
114114
const { data } = await axios.post(
115-
"http://localhost:8000/cv/extract-data", // 🔥 change to your backend URL
115+
`${import.meta.env.VITE_AI_URL || "http://localhost:8000"}/cv/extract-data`,
116116
formData,
117117
{
118118
headers: { "Content-Type": "multipart/form-data" },

0 commit comments

Comments
 (0)