-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
54bef9f
commit 588f11d
Showing
26 changed files
with
103 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,7 @@ | |
"path": "../commons/core-utils" | ||
}, | ||
{ | ||
"path": "../fdr-sdk" | ||
"path": "../../fdr-sdk/tsconfig.build.json" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
"include": ["./src/**/*"], | ||
"references": [ | ||
{ | ||
"path": "../fdr-sdk" | ||
"path": "../fdr-sdk/tsconfig.build.json" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 4 additions & 3 deletions
7
packages/ui/docs-bundle/src/pages/api/fern-docs/integrations/launchdarkly/identify.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,16 @@ | ||
import { COOKIE_EMAIL } from "@fern-ui/fern-docs-utils"; | ||
import { cookies } from "next/headers"; | ||
import { NextRequest, NextResponse } from "next/server"; | ||
|
||
export const runtime = "edge"; | ||
|
||
export default async function handler(req: NextRequest): Promise<NextResponse> { | ||
const email = req.nextUrl.searchParams.get(COOKIE_EMAIL); | ||
|
||
const res = NextResponse.redirect(new URL("/", req.url)); | ||
|
||
if (email) { | ||
cookies().set({ name: COOKIE_EMAIL, value: email }); | ||
res.cookies.set({ name: COOKIE_EMAIL, value: email }); | ||
} | ||
|
||
return NextResponse.redirect(new URL("/", req.url)); | ||
return res; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,9 +12,6 @@ | |
{ | ||
"path": "../fern-docs-utils" | ||
}, | ||
{ | ||
"path": "../app" | ||
}, | ||
{ | ||
"path": "../../commons/search-utils" | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
export interface FeatureFlags { | ||
isApiPlaygroundEnabled: boolean; | ||
isApiScrollingDisabled: boolean; | ||
isWhitelabeled: boolean; | ||
isSeoDisabled: boolean; | ||
isTocDefaultEnabled: boolean; | ||
isSnippetTemplatesEnabled: boolean; | ||
isHttpSnippetsEnabled: boolean; | ||
isInlineFeedbackEnabled: boolean; | ||
isDarkCodeEnabled: boolean; | ||
proxyShouldUseAppBuildwithfernCom: boolean; | ||
isImageZoomDisabled: boolean; | ||
useJavaScriptAsTypeScript: boolean; | ||
alwaysEnableJavaScriptFetch: boolean; | ||
scrollInContainerEnabled: boolean; | ||
useMdxBundler: boolean; | ||
isBatchStreamToggleDisabled: boolean; | ||
isAuthEnabledInDocs: boolean; | ||
isAiChatbotEnabledInPreview: boolean; | ||
isAudioFileDownloadSpanSummary: boolean; | ||
isDocsLogoTextEnabled: boolean; | ||
isAudioExampleInternal: boolean; | ||
usesApplicationJsonInFormDataValue: boolean; | ||
isBinaryOctetStreamAudioPlayer: boolean; | ||
hasVoiceIdPlaygroundForm: boolean; | ||
isCohereTheme: boolean; | ||
isFileForgeHackEnabled: boolean; | ||
is404PageHidden: boolean; | ||
isNewSearchExperienceEnabled: boolean; | ||
// TODO: remove this after pinecone demo, this is a temporary flag | ||
grpcEndpoints: readonly string[]; | ||
} | ||
|
||
export const DEFAULT_FEATURE_FLAGS: FeatureFlags = { | ||
isApiPlaygroundEnabled: false, | ||
isApiScrollingDisabled: false, | ||
isWhitelabeled: false, | ||
isSeoDisabled: false, | ||
isTocDefaultEnabled: false, | ||
isSnippetTemplatesEnabled: false, | ||
isHttpSnippetsEnabled: false, | ||
isInlineFeedbackEnabled: false, | ||
isDarkCodeEnabled: false, | ||
proxyShouldUseAppBuildwithfernCom: false, | ||
isImageZoomDisabled: false, | ||
useJavaScriptAsTypeScript: false, | ||
alwaysEnableJavaScriptFetch: false, | ||
scrollInContainerEnabled: false, | ||
useMdxBundler: false, | ||
isBatchStreamToggleDisabled: false, | ||
isAuthEnabledInDocs: false, | ||
isAiChatbotEnabledInPreview: false, | ||
isAudioFileDownloadSpanSummary: false, | ||
isDocsLogoTextEnabled: false, | ||
isAudioExampleInternal: false, | ||
usesApplicationJsonInFormDataValue: false, | ||
isBinaryOctetStreamAudioPlayer: false, | ||
hasVoiceIdPlaygroundForm: false, | ||
isCohereTheme: false, | ||
isFileForgeHackEnabled: false, | ||
is404PageHidden: false, | ||
isNewSearchExperienceEnabled: false, | ||
// TODO: remove this after pinecone demo, this is a temporary flag | ||
grpcEndpoints: [], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.