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.
5 lines
121 B
TypeScript
5 lines
121 B
TypeScript
import { startTaskScheduler } from '@/lib/server/tasks/scheduler';
|
|
|
|
if (!process.env.VERCEL) {
|
|
startTaskScheduler();
|
|
}
|