#191 move API_URL in .env file

병합
safet.purkovic feature/add_API_URL_in_env 에서 FE_dev 로 1 commits 를 머지했습니다 2 년 전

+ 1
- 2
.env 파일 보기

@@ -1,2 +1 @@

REACT_APP_BASE_API_URL=https://portalgatewayapi.bullioninternational.info/
REACT_APP_BASE_API_URL=https://api-test-hr-center.dilig.net/v1

+ 2
- 1
src/request/apiEndpoints.js 파일 보기

@@ -1,4 +1,5 @@
const base = "http://localhost:5116/v1";
const base = process.env.NODE_ENV === 'development' ?
"http://localhost:5116/v1" : process.env.REACT_APP_BASE_API_URL

export default {
authentications: {

Loading…
취소
저장