Files

6 lines
277 B
TypeScript
Raw Permalink Normal View History

export async function register() {
if (process.env.NEXT_RUNTIME === 'nodejs' && process.env.NEXT_PHASE !== 'phase-production-build') {
const { startFeishuNotificationWorker } = await import('./lib/server/feishu-notifications');
startFeishuNotificationWorker();
}
}