You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a way to avoid having the doctype by using a custom Document page?
I'm trying to use Next for rendering just some pieces of static HTML to be used somewhere else so I don't need to specify the doctype.
You should probably handle this externally. After you generate the files, i would have some processing that strips out the pieces you do not want. You can do this in node.
If you check out the SSR Cache example, you can see how the HTML is rendered and then cached, no reason you can not process that string.
lockbot
locked as resolved and limited conversation to collaborators
May 11, 2018
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Do we need to return doctype when using _document.js
<!doctype html>
won't work in_document.js
jsx. Throws error.I see that we are appending it in
server/render
. Just want to check that when we use_document.js
it is being included.The text was updated successfully, but these errors were encountered: