Skip to content

Commit

Permalink
fix 500 (#126)
Browse files Browse the repository at this point in the history
  • Loading branch information
abvthecity authored Sep 17, 2023
1 parent 1ed2c56 commit 3db3a9f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/ui/app/src/api-page/endpoints/EndpointContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ import * as FernRegistryApiRead from "@fern-fern/registry-browser/api/resources/
import { getEndpointTitleAsString, getSubpackageTitle, isSubpackage } from "@fern-ui/app-utils";
import useSize from "@react-hook/size";
import classNames from "classnames";
import dynamic from "next/dynamic";
import React, { useCallback, useMemo, useRef, useState } from "react";
import { useApiDefinitionContext } from "../../api-context/useApiDefinitionContext";
import { ApiPageDescription } from "../ApiPageDescription";
import { JsonPropertyPath } from "../examples/json-example/contexts/JsonPropertyPath";
import { useEndpointContext } from "./endpoint-context/useEndpointContext";
import { EndpointExample } from "./endpoint-examples/EndpointExample";
import { EndpointAvailabilityTag } from "./EndpointAvailabilityTag";
import { EndpointErrorsSection } from "./EndpointErrorsSection";
import { EndpointRequestSection } from "./EndpointRequestSection";
Expand All @@ -19,6 +19,11 @@ import { QueryParametersSection } from "./QueryParametersSection";

const URL_OVERFLOW_THRESHOLD = 0.95;

const EndpointExample = dynamic({
ssr: false,
loader: () => import("./endpoint-examples/EndpointExample").then((mod) => mod.EndpointExample),
});

export declare namespace EndpointContent {
export interface Props {
endpoint: FernRegistryApiRead.EndpointDefinition;
Expand Down

1 comment on commit 3db3a9f

@vercel
Copy link

@vercel vercel bot commented on 3db3a9f Sep 17, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

fern-dev – ./packages/ui/fe-bundle

fern-dev-buildwithfern.vercel.app
fern-dev-git-main-buildwithfern.vercel.app
devtest.buildwithfern.com
app-dev.buildwithfern.com

Please sign in to comment.