7 lines
277 B
TypeScript
7 lines
277 B
TypeScript
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();
|
|
}
|
|
}
|