update add api endpoints for chat and media

This commit is contained in:
Rami Bitar
2026-06-05 12:19:48 -04:00
parent 555dade01a
commit 2144fac188
8 changed files with 117 additions and 83 deletions

View File

@@ -23,8 +23,8 @@ export default function EditorPage() {
const plugins = useMemo(
() => [
aiPlugin({
api: "https://cloud.frontend.co/api/chat",
headers: { "x-api-key": process.env.NEXT_PUBLIC_FRONTEND_API_KEY },
// Proxied through our server route so the API key stays server-side.
api: "/api/chat",
}),
blocksPlugin(),
outlinePlugin(),