The only tool you need to know what is happening and how to fix it.
Go alertingexception-trackerissue-trackinglogsmetricsmonitoringobservability-platformopen-telemetryotelsession-replaytelemetrytraces
import { redirect } from '@sveltejs/kit';
import { authState } from '$lib/state/auth.svelte';
import type { PageLoad } from './$types';
export const prerender = false;
export const load: PageLoad = ({ params }) => {
if (params.id === 'new') {
throw redirect(301, '/monitors?tab=post-mortems');
}
if (!authState.isAuthenticated) throw redirect(302, '/login');
return { id: params.id };
};