TASKS-1823 WebManager module

This commit is contained in:
Igor Martyniuk
2026-08-28 08:35:58 +00:00
parent fdb2cf3837
commit c93d8c025b
654 changed files with 26232 additions and 6075 deletions
+17
View File
@@ -0,0 +1,17 @@
import type { MetadataRoute } from 'next';
import { siteUrl } from '#web-runtime/lib/site-url';
export default function robots(): MetadataRoute.Robots {
const origin = siteUrl();
return {
rules: {
userAgent: '*',
allow: '/',
// Preview URLs render unpublished drafts behind a signed token; they must never be indexed.
// The page also sends `noindex`, this just saves crawlers the fetch.
disallow: '/*/preview'
},
sitemap: new URL('/sitemap.xml', origin).href
};
}