From 85a294873908e76471685fc127019d91b3f8765d Mon Sep 17 00:00:00 2001 From: HyungWookChoi Date: Fri, 15 Dec 2023 13:52:05 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20add=20env=20for=20kakao=20redire?= =?UTF-8?q?ct?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.example | 4 +++- app/_constants/kakao.ts | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.env.example b/.env.example index ee0acc5..d77b0b9 100644 --- a/.env.example +++ b/.env.example @@ -1,2 +1,4 @@ NEXT_PUBLIC_SERVER_URL= -NEXT_PUBLIC_APP_ENV= \ No newline at end of file +NEXT_PUBLIC_APP_ENV= + +NEXT_PUBLIC_KAKAO_REDIRECT_URI= \ No newline at end of file diff --git a/app/_constants/kakao.ts b/app/_constants/kakao.ts index d2c54c7..38979d9 100644 --- a/app/_constants/kakao.ts +++ b/app/_constants/kakao.ts @@ -1,5 +1,5 @@ export const KAKAO = { // REST_API_KEY: '8cb6bb4a47d00e99bb5a038f9b6467fe', REST_API_KEY: 'df0059498e461a8b0c76d9b4d537dbaa', - REDIRECT_URI: 'http://localhost:4000/oauth/callback/kakao', + REDIRECT_URI: process.env.NEXT_PUBLIC_KAKAO_REDIRECT_URI, }