From aefc165da23e286a70a00b1a1164e3668aba3f9c Mon Sep 17 00:00:00 2001 From: Danto Date: Sat, 7 Jun 2025 19:06:10 +0900 Subject: [PATCH] =?UTF-8?q?config=20=EC=A3=BC=EC=86=8C=20=ED=86=B5?= =?UTF-8?q?=ED=95=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/ide/IDE.jsx | 4 ++-- src/ideconfig.js | 12 ------------ 2 files changed, 2 insertions(+), 14 deletions(-) delete mode 100644 src/ideconfig.js diff --git a/src/components/ide/IDE.jsx b/src/components/ide/IDE.jsx index c9ae5fa..177d531 100644 --- a/src/components/ide/IDE.jsx +++ b/src/components/ide/IDE.jsx @@ -3,7 +3,7 @@ import { Link, useNavigate, useLocation, useParams } from 'react-router-dom'; import Editor from '@monaco-editor/react'; import './IDE.css'; //npm install @monaco-editor/react -import ideConfig from '../../ideconfig'; +import config from '../../config'; // ResizeObserver 패치 함수 정의 @@ -598,7 +598,7 @@ const IDE = () => { return map; }; - const apiUrl = `${ideConfig.API_BASE_URL}/code/run`; + const apiUrl = `${config.API_BASE_URL}/api/code/run`; // 스웨거 API에 맞게 언어 매핑 함수 const mapLanguageToAPI = (langId) => { diff --git a/src/ideconfig.js b/src/ideconfig.js deleted file mode 100644 index 381fe9b..0000000 --- a/src/ideconfig.js +++ /dev/null @@ -1,12 +0,0 @@ -const ideconfig = { - // 기존 설정 - SOME_EXISTING_CONFIG: 'value', - - // ✅ API 주소 설정 추가 - API_BASE_URL: - process.env.NODE_ENV === 'development' - ? '/api' - : 'http://13.209.72.114:8080/api' -}; - -export default ideconfig;