Skip to content

Commit

Permalink
fix: only enable in prod
Browse files Browse the repository at this point in the history
  • Loading branch information
stijnvdkolk committed Jan 27, 2024
1 parent 14c8daf commit 57afece
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ const App = ({
'/album/[id]',
].includes(router.pathname);

const isProd = process.env.NODE_ENV === 'production';

return (
<main className={clsx(StatsfmSans.variable, 'font-body')}>
<AuthProvider user={pageProps.user}>
Expand All @@ -101,7 +103,7 @@ const App = ({
<meta property="og:type" content="website" />
<meta property="twitter:site" content="@spotistats" />
<meta property="twitter:creator" content="@spotistats" />
<Smartlook />
{isProd && <Smartlook />}
{showOgp && <Ogp />}
</Head>
<ToasterContainer>
Expand Down

0 comments on commit 57afece

Please sign in to comment.