From a3bbaee9856ab749e73da61031e52bfe678ac78c Mon Sep 17 00:00:00 2001 From: minuk926 Date: Thu, 7 Jul 2022 17:31:11 +0900 Subject: [PATCH] config: production confg fix --- .env.local | 3 ++- .env.production | 5 +++-- src/apis/board2.js | 33 --------------------------------- 3 files changed, 5 insertions(+), 36 deletions(-) delete mode 100644 src/apis/board2.js diff --git a/.env.local b/.env.local index b29adaf..b68aa34 100644 --- a/.env.local +++ b/.env.local @@ -1,5 +1,6 @@ NODE_PATH=src REACT_APP_MODE=local REACT_APP_VERSION = v0.0.1 -REACT_APP_API_URL=http://localhost:8090 +#REACT_APP_API_URL=http://localhost:8090 +REACT_APP_API_URL=http://211.119.124.73:8090 REACT_APP_SERVER_TIMEOUT=6000 \ No newline at end of file diff --git a/.env.production b/.env.production index 0034a47..9afe313 100644 --- a/.env.production +++ b/.env.production @@ -1,6 +1,7 @@ NODE_PATH=src REACT_APP_MODE=production REACT_APP_VERSION = v0.0.1 -#REACT_APP_API_URL=http://211.119.124.107:8090 -REACT_APP_API_URL=http://localhost:8090 +#REACT_APP_API_URL=http://localhost:8090 +#REACT_APP_API_URL=http://211.119.124.9:8090 +REACT_APP_API_URL=http://211.119.124.107:8090 REACT_APP_SERVER_TIMEOUT=6000 \ No newline at end of file diff --git a/src/apis/board2.js b/src/apis/board2.js deleted file mode 100644 index 224dff6..0000000 --- a/src/apis/board2.js +++ /dev/null @@ -1,33 +0,0 @@ -//---------------------------------------------------------------------------- -// Board : 게시판 관리 -//---------------------------------------------------------------------------- - -import axios from 'utils/axios'; -import { GET_BOARD_LIST, REMOVE_BOARD, SAVE_BOARD, SAVE_BOARD_HIT_CNT, GET_BOARD_LIST2 } from 'commons/ApiUrl'; -import { setRowId } from './common'; - -// eslint-disable-next-line import/prefer-default-export -export async function findBoards2(params) { - const res = await axios.get(GET_BOARD_LIST2, { params }); - console.log(res); - if (res.success) { - res.data = res.data.map((d, idx) => ({ ...d, rowId: setRowId(params, idx) })); - return res; - } - return res; -} - -export async function saveBoard(params) { - // eslint-disable-next-line no-return-await - return await axios.post(SAVE_BOARD, params); -} - -export async function removeBoard(inCode) { - // eslint-disable-next-line no-return-await - return await axios.post(REMOVE_BOARD + inCode); -} - -export async function modifyBoardHitCount(inCode) { - // eslint-disable-next-line no-return-await - return await axios.put(SAVE_BOARD_HIT_CNT + inCode); -}