Backend development

AFFiNE's server package is @affine/server. It provides the optional cloud capabilities used by accounts, sync, collaboration, AI, and other server-backed features.

Start with Backend setup, then use Backend testing and Database migrations for the changed area. Use the server development guide for orientation. When it conflicts with the checked-in .docker/dev examples or @affine/server package scripts, the checked-in configuration and scripts are the current source of truth.