From e44183c0fbfb795a3874aee72df375114e73aa9b Mon Sep 17 00:00:00 2001
From: gxxrxn
Date: Sat, 13 Apr 2024 18:33:28 +0900
Subject: [PATCH] =?UTF-8?q?fix:=20=EB=A1=9C=EA=B7=B8=EC=9D=B8=20redirect?=
=?UTF-8?q?=20uri=20=EC=88=98=EC=A0=95?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/apis/core/axios.ts | 2 +-
src/app/bookshelf/[bookshelfId]/page.tsx | 5 ++---
src/app/profile/me/page.tsx | 2 +-
src/constants/url.ts | 3 ++-
4 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/src/apis/core/axios.ts b/src/apis/core/axios.ts
index dd46933b..5f732209 100644
--- a/src/apis/core/axios.ts
+++ b/src/apis/core/axios.ts
@@ -11,7 +11,7 @@ import webStorage from '@/utils/storage';
const storage = webStorage(ACCESS_TOKEN_STORAGE_KEY);
const options: CreateAxiosDefaults = {
- baseURL: process.env.NEXT_HOST,
+ baseURL: process.env.NEXT_PUBLIC_HOST,
headers: {
Accept: '*/*',
'Content-Type': 'application/json',
diff --git a/src/app/bookshelf/[bookshelfId]/page.tsx b/src/app/bookshelf/[bookshelfId]/page.tsx
index 747e5919..dd955f18 100644
--- a/src/app/bookshelf/[bookshelfId]/page.tsx
+++ b/src/app/bookshelf/[bookshelfId]/page.tsx
@@ -16,8 +16,7 @@ import LikeButton from '@/v1/base/LikeButton';
import BackButton from '@/v1/base/BackButton';
import ShareButton from '@/v1/base/ShareButton';
import type { APIBookshelf, APIBookshelfInfo } from '@/types/bookshelf';
-
-const KAKAO_OAUTH_LOGIN_URL = `${process.env.NEXT_PUBLIC_API_URL}/oauth2/authorize/kakao?redirect_uri=${process.env.NEXT_PUBLIC_CLIENT_REDIRECT_URI}`;
+import { KAKAO_LOGIN_URL } from '@/constants/url';
export default function UserBookShelfPage({
params: { bookshelfId },
@@ -134,7 +133,7 @@ const BookShelfContent = ({
인사이트를 얻을 수 있어요.
-
+