Website: Next.js app for accounts, linking, who's online, device sign-in and the console
apps/web: Next.js 16 (App Router), Tailwind 4 and shadcn/ui, light and dark from the system. Pages render on the server and call the API with Eden Treaty (typed by @t5de/api), forwarding the visitor's cookie; forms use server actions; sign-up, sign-in and sign-out use Better Auth's React client. /api is rewritten to the API so its cookies are first-party. Who's online follows the API's event stream (Next's gzip is off: it held the stream back). Standalone output with a Dockerfile; deploys to Vercel as is. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
7afada1c63
commit
64c552330b
57 files changed
+3834
No files matched your search
@@ -0,0 +1,17 @@
|
||||
"use client";
|
||||
import Link from "next/link";
|
||||
import { NarrowCard } from "@/components/narrow-card";
|
||||
import { Button, buttonVariants } from "@/components/ui/button";
|
||||
|
||||
export default function ErrorPage({ reset }: { error: Error & { digest?: string }; reset: () => void }) {
|
||||
return (
|
||||
<NarrowCard title="Sorry" description="Something went wrong on our side. Try again in a moment.">
|
||||
<div className="flex gap-2">
|
||||
<Button onClick={reset}>Try again</Button>
|
||||
<Link href="/" className={buttonVariants({ variant: "outline" })}>
|
||||
Home
|
||||
</Link>
|
||||
</div>
|
||||
</NarrowCard>
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user