diff --git a/src/pages/_document.tsx b/src/pages/_document.tsx
index 94a729449..a502bedf0 100644
--- a/src/pages/_document.tsx
+++ b/src/pages/_document.tsx
@@ -1,148 +1,129 @@
-import Document, { Html, Main, NextScript, Head } from 'next/document'
+import { Html, Main, NextScript, Head } from 'next/document'
import { GTM_ID } from '@/lib/analytics'
import Script from 'next/script'
-import React from 'react'
-class CustomHead extends Head {
- getScripts(files) {
- const originalScripts = super.getScripts(files)
- return originalScripts.map((script) => {
- return React.cloneElement(script, {
- 'data-nb-nonce': '**CSP_NONCE**',
- })
- })
- }
-}
-
-class CustomDocument extends Document {
- #ASSETS_URL = process.env.NEXT_PUBLIC_ASSETS_URL || '/generated/'
- #nonce = '**CSP_NONCE**'
+const Document = () => {
+ const ASSETS_URL = process.env.NEXT_PUBLIC_ASSETS_URL || '/generated/'
+ const nonce = '**CSP_NONCE**'
- render() {
- return (
-
-