UNPKG

@sparse-bug/nextjs

Version:

Official Next.js SDK for Sparse Bug, providing seamless integration for both App and Pages routers.

14 lines (12 loc) 487 B
interface ServerConfig { apiKey: string; endpoint: string; } /** * Reports an error from a server-side context (Server Component, Route Handler, API Route). * This function is server-safe and does not use any browser APIs. * @param error - The error object to report. * @param context - Optional additional context to include. */ declare function reportErrorToServer(error: Error, config: ServerConfig, context?: Record<string, any>): void; export { reportErrorToServer };