fix: add robots field to MetaConfig and I18nMetaConfig

This commit is contained in:
BarnacleBoy 2026-05-18 13:12:15 +00:00
parent 0dc2a0a570
commit 9279ae063e
2 changed files with 4 additions and 0 deletions

View file

@ -220,6 +220,8 @@ export interface I18nMetaConfig {
twitter?: I18nTwitterCardConfig | ((route: any) => I18nTwitterCardConfig)
/** Custom meta tags */
custom?: MetaConfig['custom']
/** Robots meta directive (e.g. 'index, follow') */
robots?: string | ((route: any) => string)
/** Hreflang configuration for international SEO */
hreflang?: {
[locale: string]: string

View file

@ -33,6 +33,8 @@ export interface MetaConfig {
appendLocale?: boolean
/** Title template for formatting */
titleTemplate?: (title: string) => string
/** Robots meta directive (e.g. 'index, follow') */
robots?: string | ((route: RouteLocationNormalizedLoaded) => string)
}
/**