caelum0x 8d3ab26668 feat(console): link the Nav to Railyard's code hosting (Rithub/Gitea)
Adds Config.gitUrl (RAILYARD_GIT_URL, default
https://git.railyard.ereboslab.com) and a "Code" entry in the main Nav —
an external link, since apps/gitea runs native accounts (no Railyard
session/SSO integration yet, see apps/gitea's TODO(railyard-sso)).

Verified: npm run typecheck clean, npm test 159/159 (was 159 baseline, no
new test count change — the existing Nav.tsx copy-lint test covers the new
link text).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 03:13:22 +03:00

18 lines
574 B
TypeScript

import { redirect } from "next/navigation";
import type { ReactNode } from "react";
import { Nav } from "../../components/Nav.tsx";
import { currentSession } from "../../lib/current.ts";
import { deps } from "../../lib/deps.ts";
export const dynamic = "force-dynamic";
export default async function AppLayout({ children }: { children: ReactNode }) {
if (!(await currentSession())) redirect("/");
return (
<div className="shell">
<Nav watch={deps().cfg.watchLive} gitUrl={deps().cfg.gitUrl} />
<main className="main">{children}</main>
</div>
);
}