Why Monorepo?
Single source of truth: Shared UI, config, and types.
Faster release cycle: Packages are tested together.
Cost: CI/CD simplifies.
Our Stack Suggestion
Next.js 14+ (App Router, RSC, Route Handlers)
Firebase (Auth, Firestore, Storage; Functions if needed)
Turborepo (task caching) + ESLint/Prettier
Production Considerations
Environment variables: .env.local is only read on the server side.
Edge or Node? Choose API routes according to necessity.
Determine ISR and caching policy.
Measurement and Improvement
Core Web Vitals targets: LCP < 2.5s, INP < 200ms.
Internal Link Suggestions:
[Cyber Security checklist]
[Cloud Strategy]
