⭐️⭐️⭐️ Open-source, self-hosted alternative to Linear and Plane. Project management and issue tracking where teams and AI agents work side by side to plan and ship products.
TypeScript agenticagileai-agentsbug-reportingbug-trackerganttissue-trackerjirajira-alternativekanbanlinearlinear-alternativeopen-sourceproduct-managementproject-managementroadmapself-hostedsprint-planningteam-collaborationtrello-alternative
'use client';
import { useQuery } from '@tanstack/react-query';
import { getStorageSettings } from '@/lib/api/endpoints/settings';
import { qk } from '@/services/queryKeys';
// The instance upload limits, read wherever a file can be picked (issue
// attachments, the markdown editor, the account avatar) so the UI can state the
// limit and reject an oversized file before it is sent. They change rarely, so the
// entry is kept fresh for the session rather than refetched per mount.
export function useStorageSettingsQuery() {
return useQuery({
queryKey: qk.storageSettings,
queryFn: () => getStorageSettings(),
staleTime: 5 * 60_000,
});
}