Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

feat: Only add Dub script if Cap deployment

Richie McIlroyde996092e863
diff --git a/apps/web/app/layout.tsx b/apps/web/app/layout.tsx
index 87bd717cb..ba102aa30 100644
--- a/apps/web/app/layout.tsx
+++ b/apps/web/app/layout.tsx
@@ -128,11 +128,13 @@ export default async function RootLayout({ children }: PropsWithChildren) {
</AuthContextProvider>
</PostHogProvider>
</TooltipPrimitive.Provider>
- <DubAnalytics
- domainsConfig={{
- refer: "cap.link",
- }}
- />
+ {buildEnv.NEXT_PUBLIC_IS_CAP && (
+ <DubAnalytics
+ domainsConfig={{
+ refer: "cap.link",
+ }}
+ />
+ )}
</body>
</html>
);