This commit is contained in:
ondal
2025-02-15 15:06:01 +09:00
parent 22981e4535
commit 455af41d0d
4 changed files with 25 additions and 8 deletions
+5
View File
@@ -2,9 +2,14 @@
import axios from 'axios';
// 서비스별 base URL
/*
const MEMBER_URL = process.env.REACT_APP_MEMBER_URL || 'http://localhost:8081';
const MYSUB_URL = process.env.REACT_APP_MYSUB_URL || 'http://localhost:8082';
const RECOMMEND_URL = process.env.REACT_APP_RECOMMEND_URL || 'http://localhost:8083';
*/
const MEMBER_URL = window.__runtime_config__.MEMBER_URL || 'http://localhost:8081';
const MYSUB_URL = window.__runtime_config__.MYSUB_URL || 'http://localhost:8082';
const RECOMMEND_URL = window.__runtime_config__.RECOMMEND_URL || 'http://localhost:8083';
// 서비스별 axios 인스턴스 생성
const createAxiosInstance = (baseURL) => {