KO
베타 번역

@core / site

1.1.0 ▾
인증됨MIT
GitHub

사이트 설정, 편집 가능한 중첩 메뉴, 루프와 오픈 리다이렉트를 막는 리다이렉트 관리

코드파일 10개컨텍스트약 583토큰검사 통과

.genpmignore 적용 후 주입될 정확한 트리입니다. 고정 대상:

src/lib/site/adapters/hono.ts읽기 전용 · b7c13fa
// Adaptador Hono: `app.use(redirectMiddleware)` antes de las rutas.
import type { MiddlewareHandler } from 'hono';
import { redirectResponse } from '../index.ts';

export const redirectMiddleware: MiddlewareHandler = async (c, next) => {
  if (c.req.method === 'GET' || c.req.method === 'HEAD') {
    const res = await redirectResponse(c.req.raw);
    if (res) return res;
  }
  await next();
};

@core/site 신고

패키지를 신고하려면 GitHub로 로그인하세요.