Skip to content

Commit

Permalink
changing if statement
Browse files Browse the repository at this point in the history
  • Loading branch information
dubwub committed Jan 13, 2025
1 parent fce5c97 commit 0d9009e
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/fern-docs/ui/src/search/SearchV2.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,7 @@ export function SearchV2(): ReactElement | false {

// Rerouting to ferndocs.com for production environments to ensure streaming works
// Also see: next.config.mjs, where we set CORS headers
if (
process.env.NODE_ENV === "production" &&
process.env.NEXT_PUBLIC_VERCEL_ENV !== "preview"
) {
if (process.env.NEXT_PUBLIC_VERCEL_ENV === "production") {
chatEndpoint = `https://app.ferndocs.com/api/fern-docs/search/v2/chat`;
suggestEndpoint = `https://app.ferndocs.com/api/fern-docs/search/v2/suggest`;
}
Expand Down

0 comments on commit 0d9009e

Please sign in to comment.