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]>
36 lines
869 B
JSON
36 lines
869 B
JSON
{
|
|
"name": "@t5de/web",
|
|
"private": true,
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "next dev -p 4100",
|
|
"build": "next build",
|
|
"start": "next start -p 4100",
|
|
"check-types": "next typegen && tsc --noEmit"
|
|
},
|
|
"dependencies": {
|
|
"@base-ui/react": "^1.9.0",
|
|
"@elysiajs/eden": "1.4.9",
|
|
"@t5de/api": "workspace:*",
|
|
"better-auth": "1.7.14",
|
|
"class-variance-authority": "^0.7.1",
|
|
"cn": "^0.5.0",
|
|
"lucide-react": "^1.64.0",
|
|
"next": "16.4.3",
|
|
"react": "19.3.1",
|
|
"react-dom": "19.3.1",
|
|
"server-only": "^0.0.1"
|
|
},
|
|
"devDependencies": {
|
|
"@tailwindcss/postcss": "^4.3.3",
|
|
"@types/node": "^26.6.6",
|
|
"@types/react": "^19.3.0",
|
|
"@types/react-dom": "^19.2.0",
|
|
"elysia": "1.4.30",
|
|
"shadcn": "^4.23.0",
|
|
"tailwindcss": "^4.3.3",
|
|
"tw-animate-css": "^1.4.0",
|
|
"typescript": "^7.0.2"
|
|
}
|
|
}
|