We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I follow this article: How to add Cloudinary as an external media provider for TinaCMS
Can nuxthub implement it as in the article? If possible, how to do it. The code from the article:
// netlify/functions/api/api.js import ServerlessHttp from "serverless-http"; import express, { Router } from "express"; import { isAuthorized } from "@tinacms/auth"; import { createMediaHandler } from "next-tinacms-cloudinary/dist/handlers"; const app = express(); const router = Router(); const mediaHandler = createMediaHandler({ cloud_name: process.env.NUXT_CLOUDINARY_CLOUD_NAME || "", api_key: process.env.NUXT_CLOUDINARY_API_KEY || "", api_secret: process.env.NUXT_CLOUDINARY_API_SECRET || "", authorized: async (req, _res) => { try { if (process.env.NODE_ENV === "development") { return true; } const user = await isAuthorized(req); return user && user.verified; } catch (e) { console.error(e); return false; } }, }); router.get("/cloudinary/media", mediaHandler); router.post("/cloudinary/media", mediaHandler); router.delete("/cloudinary/media/:media", (req, res) => { req.query.media = ["media", req.params.media]; return mediaHandler(req, res); }); app.use("/api/", router); app.use("/.netlify/functions/api/", router); export const handler = ServerlessHttp(app);
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I follow this article: How to add Cloudinary as an external media provider for TinaCMS
Can nuxthub implement it as in the article? If possible, how to do it. The code from the article:
The text was updated successfully, but these errors were encountered: