From 0461e907f79aa5cbeb0a664e73a870d03140b0c5 Mon Sep 17 00:00:00 2001 From: dongree Date: Thu, 23 Nov 2023 19:56:05 +0900 Subject: [PATCH] =?UTF-8?q?Chore:=20coverletter=20referer=20=EC=84=A4?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/create/coverletter/page.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app/create/coverletter/page.tsx b/src/app/create/coverletter/page.tsx index 4794963..ede82fd 100644 --- a/src/app/create/coverletter/page.tsx +++ b/src/app/create/coverletter/page.tsx @@ -12,9 +12,9 @@ export const metadata: Metadata = { }; export default async function CreateCoverLetterPage() { - // const headersList = headers(); - // const referer = headersList.get('referer'); - // referer === null && redirect(MAIN_PATH); + const headersList = headers(); + const referer = headersList.get('referer'); + referer === null && redirect(MAIN_PATH); const accessToken = cookies().get(ACCESS_TOKEN)?.value; const refreshToken = cookies().get(REFRESH_TOKEN)?.value;