Skip to content

Commit

Permalink
analytics only on prod
Browse files Browse the repository at this point in the history
  • Loading branch information
juandjara committed Nov 14, 2023
1 parent facdf67 commit fec2d3d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ export async function action({ request }: ActionArgs) {
})
}

const isDEV = process.env.NODE_ENV === 'development'

export default function App() {
const { user, theme } = useLoaderData()
return (
Expand All @@ -94,7 +96,7 @@ export default function App() {
<ScrollRestoration />
<Scripts />
<LiveReload />
<script async defer data-website-id="3dbc951d-9c5b-4b25-8c24-1150c74db48f" src="https://uma.djara.dev/umami.js"></script>
{!isDEV && <script async defer data-website-id="3dbc951d-9c5b-4b25-8c24-1150c74db48f" src="https://uma.djara.dev/umami.js"></script>}
</body>
</html>
)
Expand Down

0 comments on commit fec2d3d

Please sign in to comment.