ig.rizaldy.club/pages/_document.js

25 lines
522 B
JavaScript
Raw Normal View History

2024-01-31 03:08:52 +07:00
import Script from "next/script";
2024-01-31 00:25:25 +07:00
import { Html, Head, Main, NextScript } from "next/document";
const Document = () => {
return (
<Html lang="en">
<Head />
<body>
<Main />
<NextScript />
2024-01-31 03:08:52 +07:00
{process.env.UMAMI_ENABLED === "true" ? (
<Script
strategy="lazyOnload"
src={process.env.UMAMI_SCRIPT_URL}
data-website-id={process.env.UMAMI_WEBSITE_ID}
/>
) : null}
2024-01-31 00:25:25 +07:00
</body>
</Html>
);
};
export default Document;