gebeya-dala-error-fixer
Version:
Automatic runtime error detection and fix suggestions for Next.js applications with config-based setup
15 lines (14 loc) • 496 B
JavaScript
/**
* Auto-initialization entry point for the error detector
* This file is automatically loaded by the Next.js plugin
*/
import { AutoInitializer } from './AutoInitializer';
// Auto-initialize the error detector
if (typeof window !== 'undefined') {
// Check if already initialized to avoid multiple instances
if (!window.__ERROR_DETECTOR_INITIALIZED__) {
window.__ERROR_DETECTOR_INITIALIZED__ = true;
AutoInitializer.getInstance();
}
}
export { AutoInitializer };