Document explicit route registration requirement in CLAUDE.md

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Ullrich Schäfer 2026-03-27 20:46:16 +01:00
parent 3c5fb517dc
commit 98df1501c7
No known key found for this signature in database
GPG key ID: A32FF691A0F752D9

View file

@ -81,6 +81,7 @@ pnpm db:studio # Open Drizzle Studio (DB browser)
## Code Conventions
- **Route registration**: Both apps use explicit `routes.ts` (not file-based routing). When adding a new route file, you **must** add it to `apps/*/app/routes.ts` or it won't be compiled into the build.
- All user-facing strings must use i18n (`useTranslation()` hook, never hardcode strings)
- Use `@trails-cool/types` for shared interfaces — don't duplicate type definitions
- Map components go in `@trails-cool/map`, not in individual apps