Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.
TypeScript i18nextnext-authnextjspostgresqlprismareact-emailt3-stacktailwindcsstrpcturborepotypescriptzod
✨ Turn webhooks on: the capability follows the API, no switch (#3345)
Luke Vella293d23ac1ca4
diff --git a/apps/web/.env.test b/apps/web/.env.testindex b27f0fabd..c1e7953e4 100644--- a/apps/web/.env.test+++ b/apps/web/.env.test@@ -17,4 +17,3 @@ SMTP_PORT=1025SMTP_REJECT_UNAUTHORIZED=falseWEBHOOK_ALLOW_PRIVATE_URLS=true-WEBHOOKS_ENABLED=truediff --git a/apps/web/src/features/webhook/constants.ts b/apps/web/src/features/webhook/constants.tsindex cf213fbd8..0756af0bd 100644--- a/apps/web/src/features/webhook/constants.ts+++ b/apps/web/src/features/webhook/constants.ts@@ -1,13 +1,3 @@-import { isSelfHosted } from "@/lib/constants";--/**- * Webhooks ride on the API capability (cloud only) but stay behind their own- * switch until the docs page that defines the payload contract is published.- * Off by default, so production is dark until the switch is flipped.- */-export const isWebhooksEnabled =- !isSelfHosted && process.env.WEBHOOKS_ENABLED === "true";-/*** Retry schedule indexed by the number of attempts already made: after the* first failure wait 1 minute, after the second 5 minutes, and so on. Adiff --git a/apps/web/src/lib/feature-flags/config.ts b/apps/web/src/lib/feature-flags/config.tsindex 1bfa3f8fc..d27bb57f3 100644--- a/apps/web/src/lib/feature-flags/config.ts+++ b/apps/web/src/lib/feature-flags/config.ts@@ -5,7 +5,6 @@ import { isCalendarsEnabled } from "@/features/calendars/constants";import { isEventTypesEnabled } from "@/features/event-types/constants";import { isFeedbackEnabled } from "@/features/feedback/constants";import { isQuickCreateEnabled } from "@/features/quick-create/constants";-import { isWebhooksEnabled } from "@/features/webhook/constants";import { isSelfHosted } from "@/lib/constants";import type { FeatureFlagConfig } from "@/lib/feature-flags/types";import { isStorageEnabled } from "@/lib/storage";@@ -42,7 +41,9 @@ export const featureFlagConfig: FeatureFlagConfig = {// The API launches cloud first; self-hosted gets it once the release// channel carries the API host and its docs.api: !isSelfHosted,- webhooks: isWebhooksEnabled,+ // Webhooks ride on the API capability: the dispatcher cron runs on the+ // cloud deployment and the docs live with the API reference.+ webhooks: !isSelfHosted,// Cloud deploys continuously and is never behind a release; the check// exists for operators who pull images.updateCheck: isSelfHosted,