From d55de8c31f3007c4ce8e951c16c9b60a7ea70066 Mon Sep 17 00:00:00 2001 From: yeyounging <133792082+yeyounging@users.noreply.github.com> Date: Mon, 4 Nov 2024 00:02:50 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20build=20=EC=98=A4=EB=A5=98=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/core.ts | 8 ++++---- src/app/home/api/queries.ts | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/api/core.ts b/src/api/core.ts index 18108b8..ec87931 100644 --- a/src/api/core.ts +++ b/src/api/core.ts @@ -8,7 +8,7 @@ import axios, { } from 'axios' import Cookies from 'js-cookie' import { ACCESS_TOKEN, HTTP_METHODS } from '@/constants' -import { BaseResponse, ErrorResponse } from './types' +import { BaseResponse } from './types' const axiosInstance: AxiosInstance = axios.create({ baseURL: process.env.NEXT_PUBLIC_API_URL, @@ -19,13 +19,13 @@ const axiosInstance: AxiosInstance = axios.create({ axiosInstance.interceptors.request.use( async (config: InternalAxiosRequestConfig) => { - // const accessToken = Cookies.get(ACCESS_TOKEN) as string - const accessToken = process.env.NEXT_PUBLIC_MASTER_TOKEN + const accessToken = Cookies.get(ACCESS_TOKEN) as string + const accessTokenTest = process.env.NEXT_PUBLIC_MASTER_TOKEN if (!accessToken) { return config } - config.headers.set('Authorization', `Bearer ${accessToken}`) + config.headers.set('Authorization', `Bearer ${accessTokenTest}`) return config }, (error: AxiosError) => { diff --git a/src/app/home/api/queries.ts b/src/app/home/api/queries.ts index 708d915..a9a0208 100644 --- a/src/app/home/api/queries.ts +++ b/src/app/home/api/queries.ts @@ -1,6 +1,6 @@ import { useMutation, useSuspenseQuery } from '@tanstack/react-query' import { getQuickList, postQuickStart } from './api' -import { QuickStart, QuickStartRequest } from './type' +import { QuickStartRequest } from './type' export const useGetQuickList = () => useSuspenseQuery({