aboutsummaryrefslogtreecommitdiff
path: root/src/trigger.ts
diff options
context:
space:
mode:
authorFuwn <[email protected]>2024-07-24 21:24:09 -0700
committerFuwn <[email protected]>2024-07-24 21:24:09 -0700
commit8a94bbfba322f8011017980e4362d46c4d51bb55 (patch)
tree4d861cd7f1d9304e6297e1b52fe759674fd5df1a /src/trigger.ts
parentfeat(layout): browser notifications (diff)
downloaddue.moe-8a94bbfba322f8011017980e4362d46c4d51bb55.tar.xz
due.moe-8a94bbfba322f8011017980e4362d46c4d51bb55.zip
feat: background notifications
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
+});