/**
 * Next.js instrumentation hook — runs once at server startup.
 * Used to initialize background schedulers.
 */
export async function register() {
  // Only run on the server (not during build or in edge runtime)
  if (process.env.NEXT_RUNTIME === "nodejs") {
    // Start the ParcelSync auto-refresh scheduler (side-effect import)
    await import("@/modules/parcel-sync/services/auto-refresh-scheduler");
  }
}
