()
| 1 | import { Html, Head, Main, NextScript } from 'next/document' |
| 2 | |
| 3 | export 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 | |
| 24 | function PWA() { |
| 25 | return ( |
nothing calls this directly
no outgoing calls
no test coverage detected