Monitoring and Observability
Last updated
Last updated
// hooks.server.ts
export const handleError = async ({ error }) => {
const client = new PostHog(env.PUBLIC_POSTHOG_API_KEY);
client.captureException(error);
await client.shutdown();
};curl https://app.refresh.tech/
# Should return 200 OK