Add plugin media
This commit is contained in:
@@ -5,6 +5,9 @@ import { useParams } from "next/navigation";
|
||||
import { Editor } from "@reacteditor/core";
|
||||
import createTailwindCdnPlugin from "@reacteditor/plugin-tailwind-cdn";
|
||||
import { createShopifyPlugin } from "@reacteditor/plugin-shopify";
|
||||
import { aiPlugin } from "@reacteditor/plugin-ai";
|
||||
import { mediaPlugin } from "@reacteditor/plugin-media";
|
||||
import { mediaAdapter } from "@/lib/adapters/media-adapter";
|
||||
import { appConfig } from "@/editor.config";
|
||||
import resolveRoute from "@/lib/resolve-route";
|
||||
import schema from "@/app.schema.json";
|
||||
@@ -23,6 +26,13 @@ export default function EditorPage() {
|
||||
publicAccessToken:
|
||||
process.env.NEXT_PUBLIC_SHOPIFY_STOREFRONT_ACCESS_TOKEN,
|
||||
}),
|
||||
aiPlugin({
|
||||
api: "https://cloud.frontend.co/api/chat",
|
||||
headers: { "x-api-key": process.env.NEXT_PUBLIC_FRONTEND_API_KEY },
|
||||
}),
|
||||
mediaPlugin({
|
||||
adapter: mediaAdapter,
|
||||
}),
|
||||
],
|
||||
[],
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user