Skip to content

Commit 8dde2d2

Browse files
committed
Use GET instead head
Because the endpoint changed
1 parent ee85f26 commit 8dde2d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Elastic.Documentation.Site/Assets/web-components/SearchOrAskAi/SearchOrAskAiButton.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export const SearchOrAskAiButton = () => {
3333
const { data: isApiAvailable } = useQuery({
3434
queryKey: ['api-health'],
3535
queryFn: async () => {
36-
const response = await fetch('/docs/_api/v1/', { method: 'HEAD' })
36+
const response = await fetch('/docs/_api/v1/')
3737
return response.ok
3838
},
3939
staleTime: 5 * 60 * 1000, // 5 minutes

0 commit comments

Comments
 (0)