Skip to content

Commit dc06c21

Browse files
committed
Use .env to build predict URL
1 parent 3be3442 commit dc06c21

File tree

1 file changed

+1
-1
lines changed
  • Track 4_ReactJS_Web Development/Project/Frontend/hrc-dashboard/src/utils/api

1 file changed

+1
-1
lines changed

Track 4_ReactJS_Web Development/Project/Frontend/hrc-dashboard/src/utils/api/doPrediction.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const doPrediction = async (payload) => {
77
REACT_APP_FLASK_SERVER_PORT || '5000'
88
}`;
99
try {
10-
const { status, data } = await post(`http://${URL}/get_prediction`, {
10+
const { status, data } = await post(`${URL}/get_prediction`, {
1111
data: payload,
1212
});
1313

0 commit comments

Comments
 (0)