Closed lucacasonato closed 4 years ago
Currently the HTML document is hard coded. It should be possible to specify a pages/_document.tsx file that defines the HTML document in JSX. This file is prerendered before all other files. It is not included in the client bundle.
pages/_document.tsx
This should be mostly based of https://nextjs.org/docs/advanced-features/custom-document. It should allow functional component style though, not just class based syntax.
Currently the HTML document is hard coded. It should be possible to specify a
pages/_document.tsx
file that defines the HTML document in JSX. This file is prerendered before all other files. It is not included in the client bundle.This should be mostly based of https://nextjs.org/docs/advanced-features/custom-document. It should allow functional component style though, not just class based syntax.