KO
베타 번역

@core / site

1.1.0 ▾
인증됨MIT
GitHub

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

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

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

src/lib/site/schema.ts읽기 전용 · b7c13fa
// Tablas de @core/site. Ajustes y menús son contenido (@core/content); aquí solo las redirecciones.
import { integer, pgTable, text, timestamp } from 'drizzle-orm/pg-core';
import { primaryId, timestamps } from '../db/index.ts';

export const redirects = pgTable('redirects', {
  id: primaryId('rdr'),
  /** Ruta exacta de origen, sin query ni barra final: `/old-page`. */
  fromPath: text('from_path').notNull().unique(),
  /** Ruta relativa (`/new`) o URL https de un dominio permitido. */
  to: text('to').notNull(),
  status: integer('status').notNull().default(301),
  hits: integer('hits').notNull().default(0),
  lastHitAt: timestamp('last_hit_at', { withTimezone: true, mode: 'date' }),
  ...timestamps,
});

export type Redirect = typeof redirects.$inferSelect;

@core/site 신고

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