The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
display sidebar menu based on feature flag
Kiran Ke2d35e60486f
diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/layout.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/layout.tsxindex 6de959b2a8..6ca3970cde 100644--- a/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/layout.tsx+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/layout.tsx@@ -80,11 +80,9 @@ export default async function WorkspaceSettingsLayout({icon: Key,segment: "tokens",},- {- name: "Webhooks",- icon: Key,- segment: "webhooks",- },+ ...(flags.webhooks+ ? [{ name: "Webhooks", icon: Key, segment: "webhooks" }]+ : []),...(flags.integrations? [{ name: "OAuth Apps", icon: CubeSettings, segment: "oauth-apps" }]: []),diff --git a/apps/web/lib/edge-config/get-feature-flags.ts b/apps/web/lib/edge-config/get-feature-flags.tsindex e721291b7c..4f543d6326 100644--- a/apps/web/lib/edge-config/get-feature-flags.ts+++ b/apps/web/lib/edge-config/get-feature-flags.ts@@ -18,9 +18,9 @@ export const getFeatureFlags = async ({const workspaceFeatures: Record<BetaFeatures, boolean> = {conversions: false,- integrations: true,+ integrations: false,dublink: false,- webhooks: true,+ webhooks: false,};if (!process.env.NEXT_PUBLIC_IS_DUB || !process.env.EDGE_CONFIG) {