aswi20220x00-gitlab/webapp/constants.ts @ 42bb0025
1 |
import env from '@beam-australia/react-env'; |
---|---|
2 |
|
3 |
const DEFAULT_BASE_PATH = 'https://localhost:7241'; |
4 |
|
5 |
export function getApiBasePath() { |
6 |
let e = env('BACKEND_URL'); |
7 |
|
8 |
if (!e) { |
9 |
return DEFAULT_BASE_PATH; |
10 |
} else { |
11 |
return e; |
12 |
}
|
13 |
}
|