Skip to content

Commit f3cbdcf

Browse files
authored
fix: Reroute from app.ferndocs to legacy.ferndocs (main branch) (#2452)
1 parent 72ba8b1 commit f3cbdcf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/fern-docs/ui/src/search/SearchV2.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,8 @@ export function SearchV2(): ReactElement | false {
9393
// Rerouting to ferndocs.com for production environments to ensure streaming works
9494
// Also see: next.config.mjs, where we set CORS headers
9595
if (process.env.NEXT_PUBLIC_VERCEL_ENV === "production") {
96-
chatEndpoint = `https://app.ferndocs.com/api/fern-docs/search/v2/chat`;
97-
suggestEndpoint = `https://app.ferndocs.com/api/fern-docs/search/v2/suggest`;
96+
chatEndpoint = `https://legacy.ferndocs.com/api/fern-docs/search/v2/chat`;
97+
suggestEndpoint = `https://legacy.ferndocs.com/api/fern-docs/search/v2/suggest`;
9898
}
9999

100100
const router = useRouter();

0 commit comments

Comments
 (0)