fix: make trigger.dev work properly

This commit is contained in:
Mythie
2024-05-15 21:54:16 +10:00
parent 108054a133
commit 61827ad729
5 changed files with 3956 additions and 113 deletions

View File

@ -11,6 +11,8 @@ export class JobClient {
private constructor() {
if (process.env.NEXT_PRIVATE_JOBS_PROVIDER === 'trigger') {
this._provider = TriggerJobProvider.getInstance();
return;
}
this._provider = LocalJobProvider.getInstance();

View File

@ -6,7 +6,7 @@ import { jobsClient } from '../client';
jobsClient.defineJob({
id: 'send.confirmation.email',
name: 'Send Confirmation Email',
version: '1-0-0',
version: '1.0.0',
trigger: {
name: 'send.confirmation.email',
schema: z.object({