RobotsConfig
interfaz Desde 1.3.0
Opciones de robots en meeko.config.ts: las reglas para User-agent: *.
ts
import type { RobotsConfig } from "@meekojs/meeko/framework";Código fuente src/modules/define-meeko-config.ts:208
Declaración #
ts
interface RobotsConfig {
readonly allow?: readonly string[]
readonly disallow?: readonly string[]
}Ejemplo #
ts
import type { RobotsConfig } from "@meekojs/meeko/framework";
const robots: RobotsConfig = { disallow: ["/admin/"] };Propiedades #
allow
#
readonly allow?: readonly string[]Prefijos permitidos (Allow:). Por defecto, ["/"] si no hay disallow.
Véase también #
- sitemap.xml y robots.txt Framework full-stack