* Init posthog cloud * posthog cloud public key * Use dev key in dev * Allow pg in script-src
31 lines
1008 B
TypeScript
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;
|