feat: add AGENTS.md for all packages and apps (9 files)

This commit is contained in:
2026-04-06 15:04:15 +02:00
parent 95a46fe7f4
commit 2c110b33e9
9 changed files with 255 additions and 0 deletions

16
apps/web-next/AGENTS.md Normal file
View File

@@ -0,0 +1,16 @@
# apps/web-next — Next.js 15 Reference App
Thin Next.js app consuming `@repo/api-client` for data and `@repo/ui` for components.
## Key Files
- `src/app/api/trpc/[trpc]/route.ts` — tRPC HTTP endpoint (fetch adapter)
- `src/app/providers.tsx` — Wraps with `<ApiProvider>`
- `src/app/layout.tsx` — Root layout
## Rules
- Use `@repo/api-client` hooks for all data fetching
- Use `@repo/ui` components for all UI
- tRPC endpoint imports `appRouter` from `@repo/api`
- Payload instance initialization goes in `src/lib/payload.ts`