From 498c081c99c1edad07ffae0858abdd65891fd07b Mon Sep 17 00:00:00 2001 From: Yurii Prykhodko <144313329+yurii-prykhodko-solid@users.noreply.github.com> Date: Thu, 1 Feb 2024 12:39:27 +0200 Subject: [PATCH] Fix docs build (#122) --- doc/docusaurus/src/pages/index.tsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/doc/docusaurus/src/pages/index.tsx b/doc/docusaurus/src/pages/index.tsx index 6a19565..15c846a 100644 --- a/doc/docusaurus/src/pages/index.tsx +++ b/doc/docusaurus/src/pages/index.tsx @@ -4,6 +4,7 @@ import Layout from '@theme/Layout'; import useDocusaurusContext from '@docusaurus/useDocusaurusContext'; import styles from './index.module.css'; import HomepageRedirectPrompt from '../components/HomepageRedirectPrompt'; +import BrowserOnly from '@docusaurus/BrowserOnly'; function HomepageHeader() { const {siteConfig} = useDocusaurusContext(); @@ -21,12 +22,14 @@ export default function Home(): JSX.Element { const {siteConfig} = useDocusaurusContext(); const introPageHref = 'docs/intro' - window.location.href = introPageHref; - return ( + + {() => } + +