File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed
Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change 11import { sortNotFoundMatches , type NotFoundMatch } from './not-found-matches.ts'
22import { notFoundQueryFromPathname } from './not-found-query.ts'
3- import {
4- isSemanticSearchConfigured ,
5- semanticSearchKCD ,
6- } from './semantic-search.server.ts'
3+ import { semanticSearchKCD } from './semantic-search.server.ts'
74
85function requestWantsHtml ( request : Request ) {
96 // Avoid expensive semantic search for asset/API requests.
@@ -48,7 +45,6 @@ export async function getNotFoundSuggestions({
4845 if ( process . env . NODE_ENV === 'test' ) return null
4946 if ( request . method . toUpperCase ( ) !== 'GET' ) return null
5047 if ( ! requestWantsHtml ( request ) ) return null
51- if ( ! isSemanticSearchConfigured ( ) ) return null
5248
5349 const resolvedPathname = normalizePathname (
5450 typeof pathname === 'string' && pathname ? pathname : new URL ( request . url ) . pathname ,
You can’t perform that action at this time.
0 commit comments