chore: trigger.version.ts to set trigger tasks versions in prod (#27333)

* chore: trigger.version.ts instead of .env.production

* chore: trigger.version.ts instead of .env.production

* chore: restore dotenv/config import for local development

Co-Authored-By: [email protected] <[email protected]>

* fixup! chore: trigger.version.ts instead of .env.production

* fixup! fixup! chore: trigger.version.ts instead of .env.production

---------

Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
authored and GitHub committed 2026-01-28 19:36:36 -03:00
1 parent 16cb9a3126
commit 09f33a840f
14 files changed
+46 -31

No files matched your search

+7 -1
View File
@@ -2,7 +2,7 @@
const { withAxiom } = require("next-axiom");
const { withSentryConfig } = require("@sentry/nextjs");
const { PrismaPlugin } = require("@prisma/nextjs-monorepo-workaround-plugin");
const { TRIGGER_VERSION } = require("./trigger.version.js");
const plugins = [withAxiom];
/** @type {import("next").NextConfig} */
@@ -105,4 +105,10 @@ if (process.env.NEXT_PUBLIC_SENTRY_DSN) {
);
}
const env = process.env;
if (process.env.NODE_ENV === "production" || process.env.CALCOM_ENV === "production") {
env.TRIGGER_VERSION = TRIGGER_VERSION;
}
module.exports = () => plugins.reduce((acc, next) => next(acc), nextConfig);
+1
View File
@@ -0,0 +1 @@
export const TRIGGER_VERSION = "20260128.1";
+2 -1
View File
@@ -17,7 +17,8 @@
"**/*.ts",
"**/*.tsx",
"../../../packages/types/*.d.ts",
"../../../packages/types/next-auth.d.ts"
"../../../packages/types/next-auth.d.ts",
"trigger.version.js"
],
"exclude": ["**/node_modules/**", "templates", "auth"]
}