File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change 1
1
import axios from "axios" ;
2
2
3
3
const getUserUrl = ( ) => {
4
- return import . meta. env . SOME_ENV_VAR_HERE ?? "http://localhost:3001/api" ;
4
+ return import . meta. env . VITE_USER_SERVICE_URL ?? "http://localhost:3001/api" ;
5
5
} ;
6
6
7
7
const getQuestionsUrl = ( ) => {
8
8
return (
9
- import . meta. env . SOME_ENV_VAR_HERE ?? "http://localhost:3000/api/questions"
9
+ import . meta. env . VITE_QN_SERVICE_URL ?? "http://localhost:3000/api/questions"
10
10
) ;
11
11
} ;
12
12
13
13
const getCodeExecutionUrl = ( ) => {
14
- return import . meta. env . SOME_ENV_VAR_HERE ?? "http://localhost:3004/api/run" ;
14
+ return (
15
+ import . meta. env . VITE_CODE_EXEC_SERVICE_URL ??
16
+ "http://localhost:3004/api/run"
17
+ ) ;
15
18
} ;
16
19
17
20
const getQnHistoriesUrl = ( ) => {
18
21
return (
19
- import . meta. env . SOME_ENV_VAR_HERE ?? "http://localhost:3006/api/qnhistories"
22
+ import . meta. env . VITE_QN_HIST_SERVICE_URL ??
23
+ "http://localhost:3006/api/qnhistories"
20
24
) ;
21
25
} ;
22
26
You can’t perform that action at this time.
0 commit comments