fixed server tsconfig.json

This commit is contained in:
John Yeo
2025-01-23 10:22:50 +00:00
parent 77deaedf1b
commit ab5e8649ee
3 changed files with 24 additions and 1 deletions

2
server/trigger.config.d.ts vendored Normal file
View File

@@ -0,0 +1,2 @@
declare const _default: import("@trigger.dev/sdk/v3").TriggerConfig;
export default _default;

21
server/trigger.config.js Normal file
View File

@@ -0,0 +1,21 @@
import { defineConfig } from "@trigger.dev/sdk/v3";
export default defineConfig({
project: "proj_yqrybepbgrhzmnbaccat",
runtime: "node",
logLevel: "log",
// The max compute seconds a task is allowed to run. If the task run exceeds this duration, it will be stopped.
// You can override this on an individual task.
// See https://trigger.dev/docs/runs/max-duration
maxDuration: 3600,
retries: {
enabledInDev: true,
default: {
maxAttempts: 3,
minTimeoutInMs: 1000,
maxTimeoutInMs: 10000,
factor: 2,
randomize: true,
},
},
dirs: ["./src/trigger"],
});

View File

@@ -6,7 +6,7 @@
"declaration": true,
// "rootDir": "../",
"rootDir": "./src",
"rootDir": ".",
"baseUrl": ".",
"outDir": "./dist",
"strict": true,