SitemapEntry
interfaz Desde 1.7.0
Una URL de una ruta en sitemap.xml, que declara sitemapEntries en definePage: los
parámetros de la ruta y, de forma opcional, los campos del protocolo sitemaps.org 0.9.
ts
import type { SitemapEntry } from "@meekojs/meeko/framework";Código fuente src/shared/definitions/sitemap.ts:14
Declaración #
ts
interface SitemapEntry {
readonly params?: Readonly<Record<string, string>>
readonly lastmod?: Date | string
readonly changefreq?: 'always' | 'hourly' | 'daily' | 'weekly' | 'monthly' | 'yearly' | 'never'
readonly priority?: number
}Ejemplo #
ts
import type { SitemapEntry } from "@meekojs/meeko/framework";
const entry: SitemapEntry = { params: { slug: "instalacion" }, lastmod: "2026-10-01", changefreq: "monthly", priority: 0.8 };Propiedades #
params
#
readonly params?: Readonly<Record<string, string>>Parámetros de la ruta (los segmentos [slug]), como en prerenderEntries. Una ruta sin parámetros no los necesita.
lastmod
#
readonly lastmod?: Date | stringFecha de la última modificación (<lastmod>): un Date o un texto W3C Datetime, como "2026-10-01".
changefreq
#
readonly changefreq?: 'always' | 'hourly' | 'daily' | 'weekly' | 'monthly' | 'yearly' | 'never'Frecuencia de cambio orientativa (<changefreq>).
Véase también #
- Rutas dinámicas en el sitemap: sitemapEntries Framework full-stack