feat(WEB): 컴포넌트 레지스트리 UI 개선 및 middleware 업데이트
- ComponentRegistryClient 기능 확장 및 UI 개선 - middleware 라우팅 로직 수정 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user