@devries-cameron20 / t3code Mirror · read-only
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 21, 07:15 UTC

main
tsx 22 lines 834 Bytes
Raw
1 import { getEnv } from "waku";
2 import { Card } from "../components/Card.tsx";
3
4 export default async function HomePage() {
5 // `getEnv` reads the server environment at request time — the portable
6 // way to reach env values from RSC page modules. On AWS it is backed by
7 // the Railway Service's `process.env`.
8 const greeting = getEnv("GREETING") ?? "Hello!";
9 return (
10 <div>
11 <h1 className="text-3xl font-bold">{greeting}</h1>
12 <Card
13 title="Styled with Tailwind CSS"
14 body="This card is a React component styled with Tailwind utilities."
15 />
16 <p className="mt-4 text-slate-600">This page is rendered by the server on every request.</p>
17 </div>
18 );
19 }
20
21 // Dynamic: rendered by the Railway Service at request time.
22 export const getConfig = async () => ({ render: "dynamic" }) as const;