8000 Error content now on errorHtml · CityOfBoston/311@8575d25 · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on May 25, 2019. It is now read-only.

Commit 8575d25

Browse files
author
Fin Hopkins
committed
Error content now on errorHtml
vercel/next.js#3142
1 parent 9cd82d1 commit 8575d25

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pages/_document.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export default class extends Document {
2121

2222
static async getInitialProps({ renderPage }) {
2323
const page = renderPage();
24-
const styles = renderStatic(() => page.html);
24+
const styles = renderStatic(() => page.html || page.errorHtml);
2525
return {
2626
...page,
2727
...styles,

0 commit comments

Comments
 (0)
0