diff --git a/docs/astro.config.mjs b/docs/astro.config.mjs index af4fed122..4a1bc99f6 100644 --- a/docs/astro.config.mjs +++ b/docs/astro.config.mjs @@ -13,8 +13,8 @@ export default /** @type {import('astro').AstroUserConfig} */ ({ resolve: { alias: { '~': '/src', - 'components': '/src/components', - } - } - } -}) + components: '/src/components', + }, + }, + }, +}); diff --git a/docs/src/components/Header/Search.tsx b/docs/src/components/Header/Search.tsx index 4ca7b4ef1..6236b5806 100644 --- a/docs/src/components/Header/Search.tsx +++ b/docs/src/components/Header/Search.tsx @@ -5,7 +5,8 @@ import * as docsearch from '@docsearch/react'; import '@docsearch/css/dist/style.css'; import './Search.css'; -const { DocSearchModal, useDocSearchKeyboardEvents } = ((docsearch as unknown as { default: typeof docsearch }).default || docsearch) +const { DocSearchModal, useDocSearchKeyboardEvents } = + (docsearch as unknown as { default: typeof docsearch }).default || docsearch; export default function Search(props) { const [isOpen, setIsOpen] = useState(false);