Playback queue, history and progress move into playbackStates and playbackProgress tables, so progress saves no longer rerun user queries. Avatars move to Convex file storage behind a web proxy route. The server caps queues at 5,000 songs, and the client stops retrying rejected syncs. migrations:migrateUsers moves existing data and runs on Docker boot. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
11 lines
387 B
TypeScript
11 lines
387 B
TypeScript
/**
|
|
* Limits shared by Convex functions and clients. Convex rejects arrays longer
|
|
* than 8,192 values in documents, arguments, and return values.
|
|
*/
|
|
|
|
/** Songs kept in the playback queue, including the current song. */
|
|
export const MAX_QUEUE_LENGTH = 5_000
|
|
|
|
/** Largest profile photo accepted, in bytes after base64 decoding. */
|
|
export const MAX_PROFILE_IMAGE_BYTES = 2 * 1024 * 1024
|