Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.
feat(trigger): remove trigger v2
Marc Seitz15140f3c9d31
diff --git a/app/api/trigger/route.ts b/app/api/trigger/route.tsdeleted file mode 100644index eb5dda1a..00000000--- a/app/api/trigger/route.ts+++ /dev/null@@ -1,9 +0,0 @@-import "@/jobs";-import { client } from "@/trigger";-import { createAppRoute } from "@trigger.dev/nextjs";--// This is the maximum duration of a job in seconds-export const maxDuration = 180;--// This route is used to send and receive data with Trigger.dev-export const { POST, dynamic } = createAppRoute(client);diff --git a/trigger.ts b/trigger.tsdeleted file mode 100644index a3415bb8..00000000--- a/trigger.ts+++ /dev/null@@ -1,24 +0,0 @@-import { TriggerClient } from "@trigger.dev/sdk";--export const client = new TriggerClient({- id: "papermark-dev-Ojwu",- apiKey: process.env.TRIGGER_API_KEY,- apiUrl: process.env.TRIGGER_API_URL,-});--export function getTriggerClient(): TriggerClient | null {- const triggerKey = process.env.TRIGGER_API_KEY;- const triggerUrl = process.env.TRIGGER_API_URL;-- if (!triggerKey || !triggerUrl) {- return null;- }-- const client = new TriggerClient({- id: "papermark-dev-Ojwu",- apiKey: process.env.TRIGGER_API_KEY,- apiUrl: process.env.TRIGGER_API_URL,- });-- return client;-}