Move business logic out of App Router into module packages, add boundary validation scripts, and keep all routes as thin re-exports without changing URLs or API behavior. Co-authored-by: Cursor <cursoragent@cursor.com>
27 lines
735 B
Markdown
27 lines
735 B
Markdown
# `shared/constants/`
|
|
|
|
## Purpose
|
|
|
|
Application-wide constants: query keys, feature flags, app catalog entries, environment defaults.
|
|
|
|
## Legacy source (not moved)
|
|
|
|
- `lib/apps-catalog.ts` — SuperApp module launcher
|
|
- Query key prefixes documented in audit (`["me"]`, `["accounting", tenantId, …]`)
|
|
- Env defaults in `next.config.mjs`
|
|
|
|
## Planned contents
|
|
|
|
- `QUERY_KEYS` — platform-level cache keys
|
|
- `APP_MODULES` — app store catalog
|
|
- Route path constants for platform (not module routes)
|
|
|
|
## Rules
|
|
|
|
- Module nav configs stay in `lib/{module}-portals.ts` until module migration
|
|
- Module query key factories stay with module API clients
|
|
|
|
## Status
|
|
|
|
📁 Scaffold only — constants remain in `lib/`.
|