c571c5ef32
* v4: Can now set project ref using the TRIGGER_PROJECT_REF env var * Add changeset * Improve the name of the resolvEnvVars function and move setting NODE_ENV into the dev supervisor * Removed moved function
43 lines
1.4 KiB
TypeScript
43 lines
1.4 KiB
TypeScript
import { defineConfig } from "@trigger.dev/sdk";
|
|
import { pythonExtension } from "@trigger.dev/python/extension";
|
|
import { installPlaywrightChromium } from "./src/extensions/playwright";
|
|
import { OTLPLogExporter } from "@opentelemetry/exporter-logs-otlp-http";
|
|
import { OTLPTraceExporter } from "@opentelemetry/exporter-trace-otlp-http";
|
|
|
|
export default defineConfig({
|
|
project: process.env.TRIGGER_PROJECT_REF!,
|
|
dirs: ["./src/trigger"],
|
|
telemetry: {
|
|
logExporters: [
|
|
new OTLPLogExporter({
|
|
url: "https://api.axiom.co/v1/logs",
|
|
headers: {
|
|
Authorization: `Bearer ${process.env.AXIOM_TOKEN}`,
|
|
"X-Axiom-Dataset": "d3-chat-tester",
|
|
},
|
|
}),
|
|
],
|
|
exporters: [
|
|
new OTLPTraceExporter({
|
|
url: "https://api.axiom.co/v1/traces",
|
|
headers: {
|
|
Authorization: `Bearer ${process.env.AXIOM_TOKEN}`,
|
|
"X-Axiom-Dataset": "d3-chat-tester",
|
|
},
|
|
}),
|
|
],
|
|
},
|
|
maxDuration: 3600,
|
|
build: {
|
|
extensions: [
|
|
// This is required to use the Python extension
|
|
pythonExtension({
|
|
requirementsFile: "./requirements.txt", // Optional: Path to your requirements file
|
|
devPythonBinaryPath: `.venv/bin/python`, // Optional: Custom Python binary path
|
|
scripts: ["src/trigger/python/**/*.py"], // List of Python scripts to include
|
|
}),
|
|
installPlaywrightChromium(),
|
|
],
|
|
},
|
|
});
|