diff options
| author | dujinkim <dujin.kim@dtsolution.co.kr> | 2025-07-02 00:45:49 +0000 |
|---|---|---|
| committer | dujinkim <dujin.kim@dtsolution.co.kr> | 2025-07-02 00:45:49 +0000 |
| commit | 2acf5f8966a40c1c9a97680c8dc263ee3f1ad3d1 (patch) | |
| tree | f406b5c86f563347c7fd088a85fd1a82284dc5ff /middleware.ts | |
| parent | 6a9ca20deddcdcbe8495cf5a73ec7ea5f53f9b55 (diff) | |
(대표님/최겸) 20250702 변경사항 업데이트
Diffstat (limited to 'middleware.ts')
| -rw-r--r-- | middleware.ts | 3 |
1 files changed, 3 insertions, 0 deletions
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) { |
