/ docs-website / src / pages / index.js
index.js
 1  // SPDX-FileCopyrightText: 2022-present deepset GmbH <info@deepset.ai>
 2  //
 3  // SPDX-License-Identifier: Apache-2.0
 4  
 5  import {useEffect} from 'react';
 6  import {useHistory} from '@docusaurus/router';
 7  
 8  export default function Home() {
 9    const history = useHistory();
10  
11    useEffect(() => {
12      // Redirect to the docs intro page immediately
13      history.replace('/docs/intro');
14    }, [history]);
15  
16    // Return null since we're redirecting immediately
17    return null;
18  }