From 0330a99f5fce8350f112ef6dfec54fbe986a809a Mon Sep 17 00:00:00 2001 From: jisangs Date: Sun, 5 Jul 2026 11:06:04 +0900 Subject: [PATCH] =?UTF-8?q?proxy=20=EB=AF=B8=EB=93=A4=EC=9B=A8=EC=96=B4?= =?UTF-8?q?=EC=97=90=20=EC=BB=A4=EC=8A=A4=ED=85=80=20=EC=84=B8=EC=85=98=20?= =?UTF-8?q?=EC=BF=A0=ED=82=A4=20=EC=9D=B4=EB=A6=84=20=EC=A0=84=EB=8B=AC,?= =?UTF-8?q?=20=ED=99=98=EA=B2=BD=EB=B3=84=20=EC=BF=A0=ED=82=A4=20=EC=9D=B4?= =?UTF-8?q?=EB=A6=84=20=EB=B6=84=EB=A6=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- proxy.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/proxy.ts b/proxy.ts index 0c9bf64..6ff8730 100644 --- a/proxy.ts +++ b/proxy.ts @@ -12,10 +12,12 @@ function usesSecureAuthCookies() { export async function proxy(request: NextRequest) { const { pathname, search } = request.nextUrl; const isPublicPath = PUBLIC_PATHS.includes(pathname); + const cookieName = `${process.env.APP_ENV ?? "local"}-chocoadmin.session-token`; const token = await getToken({ req: request, secret: process.env.AUTH_SECRET ?? process.env.NEXTAUTH_SECRET, secureCookie: usesSecureAuthCookies(), + cookieName, }); if (!token && !isPublicPath) {