Trying to set up strapi and cloudinary I watched two videos and they are all OK, but I have an error, tell me why? Middleware “strapi::session”: App keys are required. Please set app.keys in config/server.js (ex: keys: [‘myKeyA’, ‘myKeyB’]) plugins.js .env server.js middlew…
Tag: strapi
Double nested Array in JSON leads to TypeError: Cannot read properties of null (reading ‘map’)
In my code I try to get to the 2 thumbnail urls in the JSON below. I’m only able to get in the first Array the but I’m not able to get in the second array the I am getting the error: Code JSON: Can anybody help a total JS newbie on this? Answer Look at your data. Most of
Strapi v4 throwing cors exception
Im new to strapi and I have downloaded strapi v4 and as front-end I use vue.js. Now I created categories and I am trying to fetch those with my vue app but I’m getting a cors error. In the documentation I see I can override the origin on the cors middleware, but I don’t know how. I’ve tried it with
strapi 4 populate when update
Is there an way to populate the field when updating, Answer You can do this, by attaching the populate=[your_relational_field] as the query string in the http PUT request call. Sample request http://localhost:1337/api/cart/2?populate=category Sample request body in JSON format That’s all! You don’…
How to perform certain action when a post is created in Strapi CMS?
I am using Strapi CMS for my data handling with a NoSQL database. So, what I am trying to do is to publish the blog on Medium also when I publish it on Strapi CMS. I have all the credentials for publishing it on medium using API. So, the question is how to achieve this, how to perform a certain
Next.js, Strapi – Fetch response is empty
I have nextjs frontend that fetch data from strapi backend. Problem is that data is empty even if i can see on strapi dev logs that request has been made. This is next.js code And here is the strapi log But I don’t know why is data empty. Truth is that the response consist of base64 long text but I
How to add side effect to creating new record in Strapi by customizing controller?
I am trying to trigger a side effect (send notification, using socket.io) when adding new record in Strapi. The socket setup is OK, successfully emitting from back-end (Strapi API) to front-end. I followed the docs on customizing controllers and the recommendations in this Stack Overflow thread, but didn̵…