We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7179830 commit a926596Copy full SHA for a926596
packages/ui/src/app/layout.tsx
@@ -69,8 +69,8 @@ export default async function RootLayout({
69
<Toast />
70
</ProjectProvider>
71
</ThemeProvider>
72
- {/* Only track analytics on web.lean-spec.dev, not for other users */}
73
- {process.env.NEXT_PUBLIC_VERCEL_URL?.includes('lean-spec.dev') && <Analytics />}
+ {/* Analytics enabled via ENABLE_ANALYTICS env var in Vercel */}
+ {process.env.ENABLE_ANALYTICS === 'true' && <Analytics />}
74
</body>
75
</html>
76
);
0 commit comments