Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add additional check
  • Loading branch information
lorenzolewis committed Sep 19, 2024
commit 87aefc7feb3dee90ac8b6f3436a5a5c8ab588010
3 changes: 2 additions & 1 deletion packages/starlight/components/Page.astro
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ const pagefindEnabled =
!Astro.props.entry.slug.endsWith('/404') &&
pagefindConfig !== false;

const pagefindWeight = typeof pagefindConfig === 'object' && pagefindConfig.weight;
const pagefindWeight =
pagefindEnabled && typeof pagefindConfig === 'object' && pagefindConfig.weight;
---

<html
Expand Down