Skip to content

Commit

Permalink
fix: without staging (#1867)
Browse files Browse the repository at this point in the history
  • Loading branch information
abvthecity authored Dec 6, 2024
1 parent 7df0339 commit 7721bdc
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { getDocsDomainNode } from "@/server/xfernhost/node";
import { getAuthEdgeConfig, getFeatureFlags } from "@fern-ui/fern-docs-edge-config";
import { SEARCH_INDEX } from "@fern-ui/fern-docs-search-server/algolia";
import { algoliaIndexSettingsTask, algoliaIndexerTask } from "@fern-ui/fern-docs-search-server/tasks";
import { addLeadingSlash } from "@fern-ui/fern-docs-utils";
import { addLeadingSlash, withoutStaging } from "@fern-ui/fern-docs-utils";
import { NextApiRequest, NextApiResponse } from "next/types";

export const maxDuration = 900; // 15 minutes
Expand All @@ -29,7 +29,7 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse)
indexName: SEARCH_INDEX,
environment: fdrEnvironment(),
fernToken: fernToken(),
domain,
domain: withoutStaging(domain),
authed: (node) => {
if (authEdgeConfig == null) {
return false;
Expand Down

0 comments on commit 7721bdc

Please sign in to comment.