mirror of
https://github.com/velocitatem/cvfs.git
synced 2026-05-31 08:43:37 +00:00
738 B
738 B
Scaffold a new Next.js App Router page. Read apps/webapp/src/app/layout.tsx and an existing page (e.g. apps/webapp/src/app/page.tsx) for context.
From the arguments, determine:
- Route path (maps to directory under apps/webapp/src/app/)
- Whether it needs auth (server component checking Supabase session)
- Whether it needs client interactivity (use client directive)
- Data it needs to fetch
Create the page file bare-bones with correct structure - no inline styles. Add any new strings to apps/webapp/src/locales/en/common.json. If a reusable component is needed, create it in apps/webapp/src/components/ without styling (styling is done last per CLAUDE.md).
If the page requires server actions, create an adjacent actions.ts file.