caelum0x 600712e8ad feat(ritgram): cut Ritgram references over to ritgram.rithub.dev, add /docs/rit
Owner bought rithub.dev 2026-11-17; Rithub/Ritgram/Rit/gitgram-ai are all part
of it now. Replaces every ritgram.ereboslab.com / git.ereboslab.com reference
across Ritgram's pages/docs/sitemap/robots/og-tags with ritgram.rithub.dev /
rithub.dev, and adds NEXT_PUBLIC_SITE_URL fallback accordingly. New honest
/docs/rit page explains Rit (Rust git library, kept in this monorepo) is not
the production forge engine (that's go-gitea/gitea), added to the sitemap.

Old hosts (git.ereboslab.com, ritgram.ereboslab.com) now 301 to the new
domain at the Caddy layer (box-side change, not in this commit) except
/api/*, git smart-HTTP, and the Actions runner API, so existing
clones/pushes/CI/mobile keep working unchanged.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-11-17 15:19:42 +03:00

39 lines
1.0 KiB
TypeScript

import type { MetadataRoute } from 'next'
const SITE_URL = process.env.NEXT_PUBLIC_SITE_URL || 'https://ritgram.rithub.dev'
// There was no robots.txt (static or dynamic) anywhere in the app, so search
// engines had no explicit crawl directives and no sitemap reference for this
// site. Authenticated/private surfaces (messages, settings, admin, etc.) are
// disallowed; public profile/repo/discovery pages remain crawlable.
export default function robots(): MetadataRoute.Robots {
return {
rules: {
userAgent: '*',
allow: '/',
disallow: [
'/api/',
'/admin',
'/settings',
'/messages',
'/notifications',
'/account',
'/create',
'/create-change-story',
'/create-story',
'/drafts',
'/edit',
'/backup',
'/compose',
'/camera',
'/chat',
'/follow-requests',
'/creator-studio',
'/api-test',
],
},
sitemap: `${SITE_URL}/sitemap.xml`,
host: SITE_URL,
}
}