Skip to content

Commit

Permalink
use next/script instead
Browse files Browse the repository at this point in the history
  • Loading branch information
depapp committed May 3, 2024
1 parent d5e6946 commit 05f42a3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pages/_app.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import "@/styles/globals.css";
import firebase, { FirebaseContext } from "../firebase/index";
import useAuth from "../hooks/useAuth";
import Head from "next/head";
import Script from 'next/script'

export default function App({ Component, pageProps }) {
const user = useAuth();
Expand All @@ -10,8 +11,8 @@ export default function App({ Component, pageProps }) {
<>
<Head>
<link href="/favicon.ico" type="image/png" />
<script defer src={`https://eu.umami.is/script.js`} data-website-id={process.env.UMAMI_WEBSITE_ID}></script>
</Head>
<Script src={`https://eu.umami.is/script.js`} data-website-id={process.env.UMAMI_WEBSITE_ID}/>
<FirebaseContext.Provider
value={{
firebase,
Expand Down

0 comments on commit 05f42a3

Please sign in to comment.