3e42603e03
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
9 lines
375 B
TypeScript
9 lines
375 B
TypeScript
import { PrismaClient } from "@trigger.dev/database";
|
|
|
|
// Dedicated client for trigger tasks. Importing the webapp's `~/db.server`
|
|
// pulls in `~/v3/tracer.server`, whose module-load OTel registration collides
|
|
// with the worker's own ("Attempted duplicate registration of API: trace").
|
|
export const prisma = new PrismaClient({
|
|
datasourceUrl: process.env.DATABASE_URL,
|
|
});
|