RIT-2 from the architecture scan: 3 named env/const sources for the product's own domain (NEXT_PUBLIC_SITE_URL, NEXT_PUBLIC_GITEA_BASE_URL, and a local RITHUB_DEFAULT_BASE_URL const that turned out not to be a real env var) plus ~20 files hardcoding one of two domains directly. Verified by curl (follow redirects, check body) which hosts are actually live: rithub.dev (20KB, the Rithub engine) and ritgram.rithub.dev (18KB, this app) both answer 200; app.ritgram.rithub.dev (hardcoded in the install-page copy) does not resolve at all (curl: 000) - a real dead literal, not just an inconsistency. Added apps/ritgram/web/lib/site-config.ts as the single module: it still reads the existing env var names as fallback inputs (NEXT_PUBLIC_SITE_URL, NEXT_PUBLIC_GITEA_BASE_URL) so already-configured live deploys don't change behavior, but now every consumer imports RITGRAM_SITE_URL / RITHUB_ENGINE_URL / RITGRAM_SUPPORT_EMAIL / RITGRAM_LEGAL_EMAIL from one place instead of re-reading env or re-typing a domain. Note: the two constants intentionally stay separate values (Ritgram's own site vs. the Rithub engine host used for the Rithub OAuth redirect) - merging them into a single literal would have broken the "Sign in with Rithub" button. Updated: layout.tsx/sitemap.ts/robots.ts/badge route (site URL), login and register pages (Rithub OAuth base URL), terms/about contact emails, install-page copy (fixed the dead app.ritgram.rithub.dev subdomain to the real ritgram.rithub.dev host), settings/account's placeholder const. tsc --noEmit (apps/ritgram/web): 0 errors before and after. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
34 lines
1.3 KiB
TypeScript
34 lines
1.3 KiB
TypeScript
import { RITGRAM_SUPPORT_EMAIL } from '@/lib/site-config'
|
|
|
|
export default function AboutPage() {
|
|
return (
|
|
<div className="max-w-4xl mx-auto py-16 px-4">
|
|
<h1 className="text-5xl font-bold mb-6">About Ritgram</h1>
|
|
<p className="text-xl text-muted mb-8">A social platform for developers to share projects, connect, and collaborate.</p>
|
|
|
|
<div className="space-y-8">
|
|
<section>
|
|
<h2 className="text-2xl font-bold mb-4">Our Mission</h2>
|
|
<p className="text-muted">To create a vibrant community where developers can showcase their work, discover amazing projects, and build meaningful connections.</p>
|
|
</section>
|
|
|
|
<section>
|
|
<h2 className="text-2xl font-bold mb-4">Features</h2>
|
|
<ul className="space-y-2 text-muted">
|
|
<li>• Share posts, stories, and reels</li>
|
|
<li>• Real-time messaging</li>
|
|
<li>• Follow developers and projects</li>
|
|
<li>• Discover trending content</li>
|
|
<li>• Build your developer portfolio</li>
|
|
</ul>
|
|
</section>
|
|
|
|
<section>
|
|
<h2 className="text-2xl font-bold mb-4">Contact</h2>
|
|
<p className="text-muted">Email: {RITGRAM_SUPPORT_EMAIL}</p>
|
|
</section>
|
|
</div>
|
|
</div>
|
|
)
|
|
}
|