update add api endpoints for chat and media
This commit is contained in:
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user