aboutsummaryrefslogtreecommitdiff
path: root/src/trigger.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/trigger.ts')
-rw-r--r--src/trigger.ts8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/trigger.ts b/src/trigger.ts
new file mode 100644
index 00000000..92bda66b
--- /dev/null
+++ b/src/trigger.ts
@@ -0,0 +1,8 @@
+import { TriggerClient } from '@trigger.dev/sdk';
+import { TRIGGER_API_KEY, TRIGGER_API_URL, TRIGGER_ID } from '$env/static/private';
+
+export const client = new TriggerClient({
+ id: TRIGGER_ID,
+ apiKey: TRIGGER_API_KEY,
+ apiUrl: TRIGGER_API_URL
+});