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>
542 B
542 B
shared/utils/
Purpose
Pure utility functions with no React or domain dependencies.
Legacy source (not moved)
lib/utils.ts—cn,parseMoneyInput,formatMoney, and related helpers (~47 import sites)
Planned contents
cn()— clsx + tailwind-merge- Money formatting/parsing (Rial)
- Phone normalization
- URL/query helpers
Allowed dependencies
- External:
clsx,tailwind-merge - No React, no API clients
Status
📁 Scaffold only — utilities remain in lib/utils.ts.