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 = ({
인사이트를 얻을 수 있어요.

- +