Skip to content

⭐️⭐️⭐️ 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.

309 B
Raw Blame
import { ApiError } from '@/lib/api/core/client';

export function isRetryableLinkPreviewError(error: unknown) {
  return (
    error instanceof TypeError ||
    (error instanceof Error && error.name === 'TimeoutError') ||
    (error instanceof ApiError && [408, 502, 503, 504].includes(error.status))
  );
}