EN

@core / site

1.1.2 ▾
verifiedMIT
GitHub

Site settings, editable nested menus and managed redirects with loop and open-redirect protection

Code10 filesContext~583 tokensscan passed

The exact tree that will be injected, after .genpmignore. Pinned to

src/lib/site/adapters/hono.tsread-only · a659959
// 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();
};

Report @core/site

Sign in with GitHub to report a package.