Move work to the appropriate time
Generate articles, navigation, feeds, and public graph indexes at build time. Run a small local search in the browser when the index size permits it. Use an authenticated service for genuinely private or transactional operations.
Not a universal answer
Build duration, update frequency, and data volume matter. Measure the actual workload before extending a file-based architecture to millions of records. An AI-generated static interface does not replace the backend requirements of payments, authentication, or shared mutable state.