feat(WEB): 컴포넌트 레지스트리 UI 개선 및 middleware 업데이트

- ComponentRegistryClient 기능 확장 및 UI 개선
- middleware 라우팅 로직 수정

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
유병철
2026-02-12 14:59:46 +09:00
parent 75e2f50714
commit 2b8a19b4af
2 changed files with 104 additions and 9 deletions

View File

@@ -218,6 +218,13 @@ export async function middleware(request: NextRequest) {
// 1⃣ 로케일 제거
const pathnameWithoutLocale = getPathnameWithoutLocale(pathname);
// 1.5️⃣ 프로덕션 환경에서 /dev/ 경로 차단
if (process.env.NODE_ENV === 'production' && (
pathnameWithoutLocale.startsWith('/dev/') || pathnameWithoutLocale === '/dev'
)) {
return new NextResponse(null, { status: 404 });
}
// 2⃣ Bot Detection (기존 로직)
const isBotRequest = isBot(userAgent);