Description
The collaborator limit in the share modal is hardcoded as MAX_COLLABORATORS = 3. This should be configurable via an environment variable so self-hosters can change it without modifying code.
Location
frontend/src/components/ShareModal.tsx:7
Suggested Fix
- Move the constant to a config file (e.g.,
frontend/src/lib/constants.ts)
- Read from
process.env.NEXT_PUBLIC_MAX_COLLABORATORS with a fallback of 3
- Optionally fetch the actual limit from a backend endpoint
Difficulty: Easy
Estimated Time: 30 minutes
Description
The collaborator limit in the share modal is hardcoded as
MAX_COLLABORATORS = 3. This should be configurable via an environment variable so self-hosters can change it without modifying code.Location
frontend/src/components/ShareModal.tsx:7Suggested Fix
frontend/src/lib/constants.ts)process.env.NEXT_PUBLIC_MAX_COLLABORATORSwith a fallback of3Difficulty: Easy
Estimated Time: 30 minutes