From 2acf5f8966a40c1c9a97680c8dc263ee3f1ad3d1 Mon Sep 17 00:00:00 2001 From: dujinkim Date: Wed, 2 Jul 2025 00:45:49 +0000 Subject: (대표님/최겸) 20250702 변경사항 업데이트 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- middleware.ts | 3 +++ 1 file changed, 3 insertions(+) (limited to 'middleware.ts') diff --git a/middleware.ts b/middleware.ts index 242f439b..6424a02f 100644 --- a/middleware.ts +++ b/middleware.ts @@ -17,6 +17,7 @@ const publicPaths = [ '/sales', '/engineering', '/partners', + '/privacy', '/partners/repository', '/partners/signup', '/api/auth', @@ -237,6 +238,8 @@ export async function middleware(request: NextRequest) { if (token && token.domain && !isPublicPath(pathname, detectedLng)) { // 사용자의 domain과 URL 경로가 일치하는지 확인 const redirectPath = getDomainRedirectPath(pathname, token.domain as string, detectedLng); + + console.log(redirectPath, "redirectPath") // 도메인과 URL이 일치하지 않으면 리다이렉트 if (redirectPath) { -- cgit v1.2.3