File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import Layout from '@theme/Layout';
44import useDocusaurusContext from '@docusaurus/useDocusaurusContext' ;
55import styles from './index.module.css' ;
66import HomepageRedirectPrompt from '../components/HomepageRedirectPrompt' ;
7+ import BrowserOnly from '@docusaurus/BrowserOnly' ;
78
89function HomepageHeader ( ) {
910 const { siteConfig} = useDocusaurusContext ( ) ;
@@ -21,12 +22,14 @@ export default function Home(): JSX.Element {
2122 const { siteConfig} = useDocusaurusContext ( ) ;
2223 const introPageHref = 'docs/intro'
2324
24- window . location . href = introPageHref ;
25-
2625 return (
2726 < Layout
2827 title = { `${ siteConfig . title } ` }
2928 description = "solid_lints documentation" >
29+ < BrowserOnly >
30+ { ( ) => < script > { window . location . href = introPageHref } </ script > }
31+ </ BrowserOnly >
32+
3033 < HomepageHeader />
3134 < HomepageRedirectPrompt redirectHref = { introPageHref } />
3235 </ Layout >
You can’t perform that action at this time.
0 commit comments