generated from shuding/nextra-docs-template
-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into docs-revamp-sync-main
- Loading branch information
seyian-writer
committed
Jan 4, 2025
1 parent
a72be21
commit 233cef3
Showing
9 changed files
with
11 additions
and
184 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,14 @@ | ||
import React from "react"; | ||
import dynamic from "next/dynamic"; | ||
const BaseAskCookbook = dynamic(() => import("@cookbookdev/docsbot/react"), { ssr: false }); | ||
|
||
/** It's going to be exposed in HTTP requests anyway so it's fine to just hardcode it here */ | ||
interface BaseAskCookbookProps { | ||
apiKey: string; | ||
} | ||
|
||
const BaseAskCookbook = dynamic<BaseAskCookbookProps>(() => import("@cookbookdev/docsbot/react"), { ssr: false }); | ||
|
||
const COOKBOOK_PUBLIC_API_KEY = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiI2NjdlZmMxYjcyYzRmNTI5YzMxODUyZmUiLCJpYXQiOjE3MTk1OTgxMDcsImV4cCI6MjAzNTE3NDEwN30.etICfDHEcewxP9QTajrS4ggral2IgaxY_rWAlK4kNiQ"; | ||
|
||
export const AskCookbook = () => { | ||
return <BaseAskCookbook apiKey={COOKBOOK_PUBLIC_API_KEY} />; | ||
return <BaseAskCookbook apiKey={COOKBOOK_PUBLIC_API_KEY} />; | ||
}; |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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