Files
otunes/packages/convex/convex/limits.ts
joshuafhigginsandClaude Opus 5.5 Verified 4da45b9707 fix(convex): move playback state and avatars off the users document
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>
2026-11-16 14:15:27 -05:00

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