config: production confg fix

mpower
minuk926 2 years ago
parent 43415c908d
commit 96f9bef27a

@ -1,6 +1,6 @@
NODE_PATH=src
REACT_APP_MODE=production
REACT_APP_VERSION = v0.0.1
#REACT_APP_API_URL=http://211.119.124.9:8090
#REACT_APP_API_URL=http://211.119.124.107:8090
REACT_APP_API_URL=http://localhost:8090
REACT_APP_SERVER_TIMEOUT=6000

@ -38,7 +38,6 @@
"formik": "^2.2.9",
"framer-motion": "^4.1.13",
"history": "^5.2.0",
"http-proxy-middleware": "^2.0.6",
"image-to-base64": "^2.2.0",
"jsonwebtoken": "^8.5.1",
"jwt-decode": "^3.1.2",

@ -1,10 +0,0 @@
const { createProxyMiddleware } = require('http-proxy-middleware');
module.exports = function (app) {
app.use(
createProxyMiddleware('/api/v2', {
target: 'http://localhost:8090',
changeOrigin: true
})
);
};

@ -8,7 +8,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,
withCredentials: process.env.NODE_ENV !== 'production', // 개발시만 사용 : crossdomain
withCredentials: true, // process.env.NODE_ENV !== 'production', // 개발시만 사용 : crossdomain
timeout: Number(process.env.REACT_APP_SERVER_TIMEOUT),
headers: {
'Content-Type': 'application/json'

Loading…
Cancel
Save