feat: add umami config
This commit is contained in:
parent
9868e42f31
commit
f8e6502a2a
@ -4,3 +4,7 @@ MINIO_SECRET_KEY=
|
||||
MINIO_BUCKET=
|
||||
|
||||
PEERTUBE_FEED_URL=
|
||||
|
||||
UMAMI_ENABLED=
|
||||
UMAMI_SCRIPT_URL=
|
||||
UMAMI_WEBSITE_ID=
|
||||
|
@ -1,3 +1,5 @@
|
||||
import Script from "next/script";
|
||||
|
||||
import { Html, Head, Main, NextScript } from "next/document";
|
||||
|
||||
const Document = () => {
|
||||
@ -7,6 +9,13 @@ const Document = () => {
|
||||
<body>
|
||||
<Main />
|
||||
<NextScript />
|
||||
{process.env.UMAMI_ENABLED === "true" ? (
|
||||
<Script
|
||||
strategy="lazyOnload"
|
||||
src={process.env.UMAMI_SCRIPT_URL}
|
||||
data-website-id={process.env.UMAMI_WEBSITE_ID}
|
||||
/>
|
||||
) : null}
|
||||
</body>
|
||||
</Html>
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user