From 432d110f99da24e38adb5f2d7f3ee6a946aa13ec Mon Sep 17 00:00:00 2001 From: Daseul Kim Date: Wed, 2 Jul 2025 18:11:05 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=EB=A1=9C=EA=B7=B8=EC=9D=B8=20=EC=9A=94?= =?UTF-8?q?=EC=B2=AD=20=EC=8B=9C=20referer=20=ED=97=A4=EB=8D=94=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/api/auth/route.ts | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/src/app/api/auth/route.ts b/src/app/api/auth/route.ts index 57bb071..9d1c071 100644 --- a/src/app/api/auth/route.ts +++ b/src/app/api/auth/route.ts @@ -9,18 +9,14 @@ import { tracking } from '@/libs/tracking' export async function POST(request: Request) { const { loginId, pwd } = await request.json() - const result = await axiosInstance(`${process.env.NEXT_PUBLIC_QSP_API_URL}`).post( - `/api/user/login`, - { - loginId, - pwd, - }, - { - headers: { - referer: process.env.NEXT_PUBLIC_QSP_API_REFERER, - }, - }, - ) + const headers: Record = { + referer: process.env.NEXT_PUBLIC_QSP_API_REFERER || '', + } + + const result = await axiosInstance(`${process.env.NEXT_PUBLIC_QSP_API_URL}`, headers).post(`/api/user/login`, { + loginId, + pwd, + }) console.log('🚀 ~ result ~ result:', result.data) let finalResult = {}