From 5f604008246ba8f9989fe8be5692213c770c2e45 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?scnoh=28=EB=85=B8=EC=8A=B9=EC=B2=A0=29?= Date: Thu, 15 Sep 2022 17:15:36 +0900 Subject: [PATCH] =?UTF-8?q?Naver=20Search=20Key,=20Host=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 7 +++++++ .env.production | 7 +++++++ src/configs/constants.js | 5 +++++ 3 files changed, 19 insertions(+) diff --git a/.env.development b/.env.development index 69e358d..3dbcad7 100644 --- a/.env.development +++ b/.env.development @@ -1,3 +1,10 @@ REACT_APP_HOST = http://localhost:8080/ REACT_APP_WS_HOST = ws://localhost:8081/ws REACT_APP_IMAGE_HOST = https://palnet-file.s3.ap-northeast-2.amazonaws.com/ + +# Naver Search API HOST +NAVER_SEARCH_API_HOST = https://openapi.naver.com/v1/search/local.json + +# API KEY +NAVER_APP_CLIENT_KEY = WGEct3bJhQC0pyMsP_GK +NAVER_APP_SECRET_KEY = Q4K4OtUYol \ No newline at end of file diff --git a/.env.production b/.env.production index dfd5973..8c3a5c0 100644 --- a/.env.production +++ b/.env.production @@ -1,3 +1,10 @@ REACT_APP_HOST = http://pav.palntour.com:8080/ REACT_APP_WS_HOST = ws://pav.palntour.com:8081/ws REACT_APP_IMAGE_HOST = https://palnet-file.s3.ap-northeast-2.amazonaws.com/ + +# Naver Search API HOST +NAVER_SEARCH_API_HOST = https://openapi.naver.com/v1/search/local.json + +# API KEY +NAVER_APP_CLIENT_KEY = WGEct3bJhQC0pyMsP_GK +NAVER_APP_SECRET_KEY = Q4K4OtUYol \ No newline at end of file diff --git a/src/configs/constants.js b/src/configs/constants.js index 14ff7e6..a492a6d 100644 --- a/src/configs/constants.js +++ b/src/configs/constants.js @@ -1,9 +1,14 @@ // 호스트 export const HOST = process.env.REACT_APP_HOST; export const WS_HOST = process.env.REACT_APP_WS_HOST; +export const NAVER_SEARCH_API_HOST = process.env.NAVER_SEARCH_API_HOST; export const IMG_PATH = process.env.REACT_APP_IMAGE_HOST; +// API KEY +export const NAVER_APP_CLIENT_KEY = process.env.NAVER_APP_CLIENT_KEY; +export const NAVER_APP_SECRET_KEY = process.env.NAVER_APP_SECRET_KEY; + // 통신 코드 export const HTTP_STATUS_CODE = { OK: '00000'