RobotsConfig
interfaz Since 1.3.0
Opciones de robots en meeko.config.ts: las reglas para User-agent: *.
ts
import type { RobotsConfig } from "@meekojs/meeko/framework";Source code src/modules/define-meeko-config.ts:208
Declaración #
ts
interface RobotsConfig {
readonly allow?: readonly string[]
readonly disallow?: readonly string[]
}Example #
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.
See also #
- sitemap.xml and robots.txt Framework full-stack