| 1 | import { Card } from "./components/Card"; |
| 2 | |
| 3 | // Server-rendered in the Railway Service on every request. |
| 4 | export const dynamic = "force-dynamic"; |
| 5 | |
| 6 | // Title lives on the page (not the layout) so the dev test's hot-reload |
| 7 | // marker rewrite targets this file. |
| 8 | export const metadata = { |
| 9 | title: "Next.js on Railway", |
| 10 | }; |
| 11 | |
| 12 | export default function Home() { |
| 13 | return ( |
| 14 | <main> |
| 15 | <h1 className="text-3xl font-bold">{process.env.GREETING ?? "Hello!"}</h1> |
| 16 | <Card |
| 17 | title="Styled with Tailwind CSS" |
| 18 | body="This card is a React component styled with Tailwind utilities." |
| 19 | /> |
| 20 | </main> |
| 21 | ); |
| 22 | } |