Skip to content

Commit c20051a

Browse files
committed
docs: fix ai url
1 parent bed1a08 commit c20051a

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

docs/app/demo/_components/DemoEditor.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,11 @@ import { HARDCODED_USERS, resolveUsers, uploadFile } from "./utils";
5959

6060
import "./styles.css";
6161

62-
const AI_API_URL = "https://localhost:3000/ai/regular/streamText";
62+
const BASE_URL =
63+
process.env.NEXT_PUBLIC_BLOCKNOTE_AI_SERVER_BASE_URL ||
64+
"https://localhost:3000/ai";
65+
66+
const AI_API_URL = `${BASE_URL}/regular/streamText`;
6367

6468
// Formatting toolbar with AI button
6569
function FormattingToolbarWithAI() {

0 commit comments

Comments
 (0)