Files
js/pages/_document.tsx
T
Nacho Iacovino 3ff5df716c Init posthog cloud (#2098)
* Init posthog cloud

* posthog cloud public key

* Use dev key in dev

* Allow pg in script-src
2024-01-09 21:44:18 +00:00

31 lines
1008 B
TypeScript

import chakraTheme from "../theme";
import { ColorModeScript } from "@chakra-ui/react";
import Document, { Head, Html, Main, NextScript } from "next/document";
class ConsoleDocument extends Document {
render() {
return (
<Html lang="en-US">
<Head>
{/* preconnect to domains we know we'll be using */}
<link rel="preconnect" href="https://a.thirdweb.com" />
<link rel="dns-prefetch" href="https://a.thirdweb.com" />
<link rel="preconnect" href="https://pg.paper.xyz" />
<link rel="dns-prefetch" href="https://pg.paper.xyz" />
<link rel="preconnect" href="https://pl.thirdweb.com" />
<link rel="dns-prefetch" href="https://pl.thirdweb.com" />
</Head>
<body id="tw-body-root">
<ColorModeScript
initialColorMode={chakraTheme.config.initialColorMode}
/>
<Main />
<NextScript />
</body>
</Html>
);
}
}
export default ConsoleDocument;