Add disable_seo config to keep preview deployments out of search engines

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
2026-10-15 05:29:08 +01:00
co-authored by Claude Opus 5.5
parent 3a75880ae4
commit 23a309005a
14 changed files with 117 additions and 3 deletions
+7
View File
@@ -102,6 +102,13 @@ export type BunextConfig = {
* `false` to skip generating it.
*/
robots?: BunextRobotsConfig | false;
/**
* Keep the whole site out of search engines, e.g. for preview
* deployments. Every response gets `X-Robots-Tag: noindex, nofollow`,
* pages get a matching robots meta tag (overriding `meta.robots`), and
* `/robots.txt` disallows all crawlers regardless of `public/robots.txt`.
*/
disable_seo?: boolean;
};
export type BunextConfigMiddlewareParams = {
req: Request;