File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 1
1
import 'bootstrap/dist/css/bootstrap.min.css' ;
2
2
import 'bootstrap-icons/font/bootstrap-icons.css' ;
3
3
import '../styles/globals.css'
4
+ import dynamic from "next/dynamic" ;
4
5
import Script from "next/script" ;
5
6
import { Provider } from "react-redux" ;
6
7
import { saveToLocalStorage , storeWrapper } from "../store/store" ;
@@ -22,4 +23,10 @@ function MithrilExplorer({ Component, ...rest }) {
22
23
) ;
23
24
}
24
25
25
- export default MithrilExplorer ;
26
+ // Disable Server Side Rendering, this as SEO implication since the site won't be rendered by bots without
27
+ // them running client javascript.
28
+ // If enabled this leads to NextJs/React hydration errors since the server side rendered page won't
29
+ // have access to the saved local storage settings.
30
+ export default dynamic ( ( ) => Promise . resolve ( MithrilExplorer ) , {
31
+ ssr : false
32
+ } ) ;
You can’t perform that action at this time.
0 commit comments