Skip to content

Commit

Permalink
fix: fix baseUrl
Browse files Browse the repository at this point in the history
  • Loading branch information
vikiboss committed Jun 13, 2024
1 parent 3bd0ccd commit e1e3f63
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions website/src/pages/reference/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import { Redirect } from '@docusaurus/router'
import hooks from '../search/hooks.json'
import useDocusaurusContext from '@docusaurus/useDocusaurusContext'

export default function Reference() {
const hook = hooks[0]?.name ?? 'use-adaptive-text-area'
return <Redirect to={`/reference/${hook}`} />
const { siteConfig } = useDocusaurusContext()
const hook = hooks[0]?.name ?? 'create-single-loading'
return <Redirect to={`${siteConfig.baseUrl}/reference/${hook}`} />
}

0 comments on commit e1e3f63

Please sign in to comment.