@zedtech/zedkit-seo
Serve robots.txt content
@zedtech/zedkit-seo — beta
beta
At a glance
- Who: Developers who want a correct robots.txt without memorizing the syntax.
- What: Build robots.txt content (allows, disallows, sitemap links) from typed options.
- Use when: For every public site, served from
/robots.txt. - Avoid when: For access control — robots.txt is advisory; gate private content with auth instead.
- See also: List localized pages in a sitemap
Install
pnpm add @zedtech/zedkit-seoLatest: 0.1.3 (via changesets).
Example
import { buildRobots } from "@zedtech/zedkit-seo";
export function robots() {
return buildRobots({ siteUrl, extraSitemaps: [`${siteUrl}/video-sitemap.xml`] });
}Wraps: (none)