diff options
| author | Fuwn <[email protected]> | 2026-02-08 06:45:28 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2026-02-08 06:45:28 -0800 |
| commit | 28859e03ebc69e1e4bfb288adca6e5418ba4ad04 (patch) | |
| tree | 8f02a210f8799b13c03256bc1f907d2d8c65e4f8 /apps | |
| parent | fix: share clipboard write for Safari transient activation (diff) | |
| download | asa.news-28859e03ebc69e1e4bfb288adca6e5418ba4ad04.tar.xz asa.news-28859e03ebc69e1e4bfb288adca6e5418ba4ad04.zip | |
chore: gate Vercel analytics and speed insights to production only
Diffstat (limited to 'apps')
| -rw-r--r-- | apps/web/app/layout.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/web/app/layout.tsx b/apps/web/app/layout.tsx index 27c95bc..a7da263 100644 --- a/apps/web/app/layout.tsx +++ b/apps/web/app/layout.tsx @@ -50,8 +50,8 @@ export default function RootLayout({ {children} </Providers> </ThemeProvider> - <SpeedInsights /> - <Analytics /> + {process.env.NODE_ENV === "production" && <SpeedInsights />} + {process.env.NODE_ENV === "production" && <Analytics />} </body> </html> ) |