From 1d25cfcc7d2f62e9c34c0d1d30a47be1f2cf818b Mon Sep 17 00:00:00 2001 From: Deep Singhvi Date: Thu, 2 Jan 2025 12:37:15 -0500 Subject: [PATCH] fix(search): make sure that calls to the search endpoint are GET requests (#1951) --- packages/fern-docs/bundle/.depcheckrc.json | 3 ++- packages/fern-docs/bundle/src/server/queue-reindex.ts | 10 ++++++++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/packages/fern-docs/bundle/.depcheckrc.json b/packages/fern-docs/bundle/.depcheckrc.json index af1c0509a2..c3bbe37e07 100644 --- a/packages/fern-docs/bundle/.depcheckrc.json +++ b/packages/fern-docs/bundle/.depcheckrc.json @@ -16,7 +16,8 @@ "esbuild", "glslify-import", "glslify-loader", - "raw-loader" + "raw-loader", + "@upstash/qstash" ], "ignore-patterns": ["dist"] } diff --git a/packages/fern-docs/bundle/src/server/queue-reindex.ts b/packages/fern-docs/bundle/src/server/queue-reindex.ts index ac3cebbe8e..ae3f28d1d4 100644 --- a/packages/fern-docs/bundle/src/server/queue-reindex.ts +++ b/packages/fern-docs/bundle/src/server/queue-reindex.ts @@ -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", + } ); }; @@ -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", + } ); };