mirror of
https://github.com/eliasstepanik/core.git
synced 2026-01-11 21:28:29 +00:00
* Feat: v2 * feat: add chat functionality * First cut: integrations * Feat: add conversation API * Enhance conversation handling and memory management * Feat: added conversation --------- Co-authored-by: Manoj K <saimanoj58@gmail.com>
39 lines
1.0 KiB
TypeScript
39 lines
1.0 KiB
TypeScript
import { defineConfig } from "@trigger.dev/sdk/v3";
|
|
import {
|
|
additionalPackages,
|
|
syncEnvVars,
|
|
} from "@trigger.dev/build/extensions/core";
|
|
import { prismaExtension } from "@trigger.dev/build/extensions/prisma";
|
|
|
|
export default defineConfig({
|
|
project: process.env.TRIGGER_PROJECT_ID as string,
|
|
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: 1,
|
|
minTimeoutInMs: 1000,
|
|
maxTimeoutInMs: 10000,
|
|
factor: 2,
|
|
randomize: true,
|
|
},
|
|
},
|
|
dirs: ["./app/trigger"],
|
|
build: {
|
|
extensions: [
|
|
syncEnvVars(() => ({
|
|
DATABASE_URL: process.env.DATABASE_URL,
|
|
BACKEND_HOST: process.env.BACKEND_HOST,
|
|
})),
|
|
prismaExtension({
|
|
schema: "prisma/schema.prisma",
|
|
}),
|
|
],
|
|
},
|
|
});
|