From 1601231da64ce25027d421f669a8519600b597c2 Mon Sep 17 00:00:00 2001 From: minuk926 Date: Mon, 11 Jul 2022 14:21:58 +0900 Subject: [PATCH] config: production confg fix --- package.json | 1 + src/utils/axios.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index f97de0d..178c06d 100755 --- a/package.json +++ b/package.json @@ -2,6 +2,7 @@ "name": "xit-opst-fo", "version": "0.0.1", "private": true, + "proxy": "http://localhost:8090", "dependencies": { "@emotion/cache": "^11.7.1", "@emotion/react": "^11.7.1", diff --git a/src/utils/axios.js b/src/utils/axios.js index beb277b..3328816 100755 --- a/src/utils/axios.js +++ b/src/utils/axios.js @@ -7,7 +7,7 @@ import Swal from 'sweetalert2'; const axiosService = axios.create({ // baseURL: process.env.NODE_ENV === 'development' ? process.env.REACT_APP_API_URL : '', - baseURL: process.env.REACT_APP_API_URL, + // baseURL: process.env.REACT_APP_API_URL, withCredentials: true, // 개발시만 사용 : crossdomain timeout: Number(process.env.REACT_APP_SERVER_TIMEOUT), headers: {