Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.
feat: add new beta feature to feature flag
Marc Seitz044dca1bcc2d
diff --git a/lib/featureFlags/index.ts b/lib/featureFlags/index.tsindex 4c718129..d08f2248 100644--- a/lib/featureFlags/index.ts+++ b/lib/featureFlags/index.ts@@ -1,12 +1,13 @@import { get } from "@vercel/edge-config";-export type BetaFeatures = "tokens" | "webhooks";+export type BetaFeatures = "tokens" | "webhooks" | "roomChangeNotifications";type BetaFeaturesRecord = Record<BetaFeatures, string[]>;export const getFeatureFlags = async ({ teamId }: { teamId?: string }) => {const teamFeatures: Record<BetaFeatures, boolean> = {tokens: false,webhooks: false,+ roomChangeNotifications: false,};// Return all features as true if edge config is not available