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.
Parameters
Section titled “Parameters”Robots configuration.
disallow?
Section titled “disallow?”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.
siteUrl
Section titled “siteUrl”string
The site’s absolute origin, no trailing slash (e.g. https://example.com).
The sitemap URL is derived as ${siteUrl}/sitemap.xml.
Returns
Section titled “Returns”A robots() function suitable as app/robots.ts’s default export.
() => RobotsFile