Skip to content

Commit

Permalink
refactor: change the management location of API_BASE_URL
Browse files Browse the repository at this point in the history
  • Loading branch information
timepresent95 committed Aug 6, 2024
1 parent 704954f commit 7b99a08
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .env
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
TEST_URL = "gooman.com"
TEST_URL = "gooman.com"
API_BASE_URL = 'http://family-farm-mobile-base-url'
5 changes: 4 additions & 1 deletion src/api/axios.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
//FIXME: 서버 작업이 완료되면 axios 모듈 사용으로 수정해야 함
import axios from 'axios';
import {Config} from 'react-native-config';
// import axios from '@/mock/mockAxios';

const axiosInstance = axios.create({
baseURL: 'http://192.168.0.35:3030',
baseURL: Config.API_BASE_URL,
timeout: 5000,
withCredentials: true,
});
Expand Down

0 comments on commit 7b99a08

Please sign in to comment.