Skip to content

Open-source manufacturing ERP, MES and QMS. Quoting, MRP, inventory, shop floor, quality and lot/serial traceability on one Postgres schema, with a REST API and MCP server. Self-host or use Carbon Cloud.

refactor: move trigger project id to environment variable

Brad Barbin80f71867d999
diff --git a/.env.example b/.env.example
index 97e5e55d50..b99a7239c3 100644
--- a/.env.example
+++ b/.env.example
@@ -31,6 +31,7 @@ TRIGGER_ID="****************************"
TRIGGER_API_KEY="***********************"
TRIGGER_API_URL="https://api.trigger.dev"
TRIGGER_PUBLIC_API_KEY="pk_*************"
+TRIGGER_PROJECT_ID="proj_***************"
UPSTASH_REDIS_REST_URL="https://**.upstash.io"
UPSTASH_REDIS_REST_TOKEN="*******************"
diff --git a/README.md b/README.md
index 740e3733c9..d38c6d34e0 100644
--- a/README.md
+++ b/README.md
@@ -21,7 +21,6 @@
<img src="https://img.shields.io/badge/React-23272F?style=for-the-badge&logo=react&logoColor=white" alt="React" />
</p>
-
![ERP Screenshot](https://github.com/user-attachments/assets/2e09b891-d5e2-4f68-b924-a1c8ea42d24d)
![MES Screenshot](https://github.com/user-attachments/assets/b04f3644-91aa-4f74-af8d-6f3e12116a6b)
@@ -178,6 +177,7 @@ $ cp ./.env.example ./.env
- `TRIGGER_PUBLIC_API_KEY=[Public 'dev' API Key, starting 'pk_dev*']`
- `TRIGGER_API_KEY=[Server 'dev' API Key, starting 'tr_dev*']`
+- `TRIGGER_PROJECT_ID=[Public 'project' key, starting 'proj*]`
4. In Posthog go to [https://[region].posthog.com/project/[project-id]/settings/project-details](https://[region].posthog.com/project/[project-id]/settings/project-details) to find your Project ID and Project API key:
diff --git a/packages/jobs/trigger.config.ts b/packages/jobs/trigger.config.ts
index 4fefb70319..acc3cd47d4 100644
--- a/packages/jobs/trigger.config.ts
+++ b/packages/jobs/trigger.config.ts
@@ -1,7 +1,10 @@
import { defineConfig } from "@trigger.dev/sdk/v3";
+import { config } from "dotenv";
+
+config();
export default defineConfig({
- project: "proj_pcqnuicfddhmdltkgjjl",
+ project: process.env.TRIGGER_PROJECT_ID!,
maxDuration: 60,
runtime: "node",
logLevel: "log",