@lobehub/chat
Version:
Lobe Chat - an open-source, high-performance chatbot framework that supports speech synthesis, multimodal, and extensible Function Call plugin system. Supports one-click free deployment of your private ChatGPT/LLM web application.
10 lines (7 loc) • 327 B
text/typescript
import { appEnv } from '@/envs/app';
export type ErrorType = Error & { digest?: string };
export const sentryCaptureException = async (error: Error & { digest?: string }) => {
if (!appEnv.NEXT_PUBLIC_ENABLE_SENTRY) return;
const { captureException } = await import('@sentry/nextjs');
return captureException(error);
};