Skip to content

Commit 7b89646

Browse files
Bill LeoutsakosBill Leoutsakos
authored andcommitted
fix(deployment): initialize block registry before triggers
1 parent 0ae09c1 commit 7b89646

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

apps/sim/lib/webhooks/deploy.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/**
2+
* Trigger definitions reference block configs while they initialize. Load the block registry first
3+
* so the trigger barrel cannot re-enter a partially initialized registry during deployment.
4+
*/
5+
import '@/blocks/registry'
16
import { db } from '@sim/db'
27
import { account, credential, webhook, workflowDeploymentVersion } from '@sim/db/schema'
38
import { createLogger } from '@sim/logger'

0 commit comments

Comments
 (0)