openreader/src/instrumentation.node.ts
Richard R f135338d74 chore(instrumentation): delegate node-specific setup to separate module
Move Node.js-specific instrumentation logic to a dedicated file. Update
registration to dynamically import the node module only when running in a
Node.js environment. This separation clarifies environment-specific behavior
and improves maintainability.
2026-06-07 06:09:14 -06:00

5 lines
121 B
TypeScript

import { startTaskScheduler } from '@/lib/server/tasks/scheduler';
if (!process.env.VERCEL) {
startTaskScheduler();
}