Skip to content

Commit

Permalink
fix(search): make sure that calls to the search endpoint are GET requ…
Browse files Browse the repository at this point in the history
…ests (#1951)
  • Loading branch information
dsinghvi authored Jan 2, 2025
1 parent 83b76e5 commit 1d25cfc
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
3 changes: 2 additions & 1 deletion packages/fern-docs/bundle/.depcheckrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
"esbuild",
"glslify-import",
"glslify-loader",
"raw-loader"
"raw-loader",
"@upstash/qstash"
],
"ignore-patterns": ["dist"]
}
10 changes: 8 additions & 2 deletions packages/fern-docs/bundle/src/server/queue-reindex.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,10 @@ export const queueAlgoliaReindex = async (
host,
domain,
basepath_,
"/api/fern-docs/search/v2/reindex/algolia"
"/api/fern-docs/search/v2/reindex/algolia",
{
method: "GET",
}
);
};

Expand All @@ -74,6 +77,9 @@ export const queueTurbopufferReindex = async (
host,
domain,
basepath_,
"/api/fern-docs/search/v2/reindex/turbopuffer"
"/api/fern-docs/search/v2/reindex/turbopuffer",
{
method: "GET",
}
);
};

0 comments on commit 1d25cfc

Please sign in to comment.