fix: handle headscale unavailability gracefully

This commit is contained in:
Aarnav Tale 2025-01-17 11:45:36 +00:00
parent e01fd8d50c
commit 1b45b0917f
No known key found for this signature in database
9 changed files with 135 additions and 80 deletions

View file

@ -13,6 +13,7 @@ import { getSession } from '~/utils/sessions.server';
import { useLiveData } from '~/utils/useLiveData';
import type { Machine, Route, User } from '~/types';
import { queryAgent, initAgentSocket } from '~/utils/ws-agent';
import { ErrorPopup } from '~/components/Error'
import { menuAction } from './action';
import MachineRow from './components/machine';
@ -139,3 +140,9 @@ export default function Page() {
</>
);
}
export function ErrorBoundary() {
return (
<ErrorPopup type="embedded" />
)
}