Solutionunvalidated
Replace `import { Head } from 'next/document'` with `import Head from 'next/head'` — if you're using it for metadata in regular pages. Tension: Make sure you only use components from `next/document` in the `pages/_document.js` file. Outcome: The problem is likely in a shared component that's being used across multiple pages, including the 404 route.
9ca66388-8dcd-4fe4-9dc1-f01e9867986a
Replace import { Head } from 'next/document' with import Head from 'next/head' — if you're using it for metadata in regular pages. Tension: Make sure you only use components from next/document in the pages/_document.js file. Outcome: The problem is likely in a shared component that's being used across multiple pages, including the 404 route.