import { Html, Head, Main, NextScript } from 'next/document'
import { ENV_CONFIG } from 'common/envs/constants'
import Script from 'next/script'

export default function Document() {
  return (
    <Html lang="en">
      <Head>
        <link rel="icon" href={ENV_CONFIG.faviconPath} />
        <Script src="/init-theme.js" strategy="beforeInteractive" />
      </Head>
      <body className="body-bg text-ink-1000">
        <Main />
        <NextScript />
      </body>
    </Html>
  )
}
