TypeScript on the website
Repo: Tiger-Studio-Website. App Router files live under src/.
Folders you will touch
| Path | What it is |
|---|---|
src/app/ | Routes (page.tsx, layout.tsx, route handlers) |
src/components/ | UI |
src/lib/ | GitHub fetch, docs loader, Supabase helpers |
src/lib/supabase/ | Browser/server Supabase clients |
vercel.ts | Vercel project config (typed) |
supabase/migrations/ | SQL for Join / Proj.Help, not TypeScript |
Habits that keep the build green
- Reuse types in
src/lib/types.tsand nearby modules instead ofany. - Server-only secrets stay off
NEXT_PUBLIC_names. Public Supabase URL and publishable/anon key are the exception — see Supabase. - After UI changes, run
npm run lintandnpm run buildlocally when you can. - Do not edit Next.js internals to add a docs page. Add Markdown in this repo instead.
Config pointer
tsconfig.json is already set for the App Router. You should not need to change strict or paths for a normal feature.