MCPcopy Create free account
hub / github.com/pacexy/flow / Document

Function Document

apps/reader/src/pages/_document.tsx:3–22  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1import { Html, Head, Main, NextScript } from 'next/document'
2
3export default function Document() {
4 return (
5 // https://github.com/vercel/next.js/issues/10285
6 // Next injects `<style data-next-hide-fouc="true">body{display:none}</style>`,
7 // so we should set background on `html`
8 <Html className="bg-default">
9 <Head>
10 <GoogleTagManager />
11 <link rel="icon" href="/icons/192.png"></link>
12 <PWA />
13 <PreventFlash />
14 </Head>
15 <body>
16 <GoogleTagManagerNoScript />
17 <Main />
18 <NextScript />
19 </body>
20 </Html>
21 )
22}
23
24function PWA() {
25 return (

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected