feat: add AGENTS.md for all packages and apps (9 files)
This commit is contained in:
16
apps/web-next/AGENTS.md
Normal file
16
apps/web-next/AGENTS.md
Normal 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`
|
||||
Reference in New Issue
Block a user