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>
37 lines
1.0 KiB
TypeScript
37 lines
1.0 KiB
TypeScript
import type { MetadataRoute } from 'next'
|
|
|
|
const SITE_URL = process.env.NEXT_PUBLIC_SITE_URL || 'https://ritgram.rithub.dev'
|
|
|
|
// Static, always-public marketing/discovery routes. User/repo profile pages
|
|
// are dynamic ([username], [owner]/[repo]) and intentionally left out here
|
|
// rather than querying the database at build time from this file; add a
|
|
// dedicated sitemap route (e.g. app/sitemap/[id]/route.ts with
|
|
// generateSitemaps) if those need to be indexed individually.
|
|
const STATIC_ROUTES = [
|
|
'',
|
|
'/explore',
|
|
'/discover',
|
|
'/trending',
|
|
'/search',
|
|
'/pricing',
|
|
'/about',
|
|
'/terms',
|
|
'/privacy-policy',
|
|
'/docs/import-from-github',
|
|
'/docs/rithub-vs-github',
|
|
'/docs/rithub-vs-gitlab',
|
|
'/docs/rithub-vs-codeberg',
|
|
'/docs/github-account-suspended',
|
|
'/docs/rit',
|
|
]
|
|
|
|
export default function sitemap(): MetadataRoute.Sitemap {
|
|
const now = new Date()
|
|
return STATIC_ROUTES.map((path) => ({
|
|
url: `${SITE_URL}${path}`,
|
|
lastModified: now,
|
|
changeFrequency: path === '' ? 'daily' : 'weekly',
|
|
priority: path === '' ? 1 : 0.7,
|
|
}))
|
|
}
|