Skip to content

createVexRobots

createVexRobots(props): () => RobotsFile

Defined in: packages/next/src/seo/createVexRobots.ts:10

Creates a Next.js robots.ts default export that allows crawlers across the site and points them at the generated sitemap.

Robots configuration.

string[]

Paths to disallow. Every vexcms template passes ["/admin", "/api"] — the admin panel is authenticated and neither belongs in an index. Omitted entirely when absent or empty, rather than emitted as an empty array.

string

The site’s absolute origin, no trailing slash (e.g. https://example.com). The sitemap URL is derived as ${siteUrl}/sitemap.xml.

A robots() function suitable as app/robots.ts’s default export.

() => RobotsFile