diff options
| -rw-r--r-- | middleware.ts | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/middleware.ts b/middleware.ts index 2ff8408e..4e222e6c 100644 --- a/middleware.ts +++ b/middleware.ts @@ -224,6 +224,14 @@ export async function middleware(request: NextRequest) { } /** + * 3-1. TrustNet 등 정적 경로는 언어 경로 추가하지 않고 그대로 통과 + * TrustNet은 Tomcat 서버에서 처리되므로 Next.js middleware가 개입하지 않음 + */ + if (pathname.startsWith('/trustnet')) { + return NextResponse.next(); + } + + /** * 4. 현재 pathname이 언어 경로를 포함하고 있는지 확인 */ const hasValidLngInPath = languages.some( |
