Strapi is an open-source Node.js headless CMS built on top of Koa. It's frontend-agnostic and claims to not be an MVC framework. It auto-generate RESTful endpoints and has support for GraphQL and WebSockets.
Questions tagged [strapi]
2734 questions
13
votes
3 answers
What are the key differences between KeystoneJS and Strapi as tools to create CMS-driven apps?
I'm leaning towards the idea that I'd use Keystone (as-is) for a standard, server-driven multi-page app and strapi when i want to stick Vue/React/Angular on the front-end for a SPA? Since it has a template/view already baked in, Keystone might be…

Charles Thomas Ingles
- 1,629
- 2
- 12
- 14
13
votes
2 answers
Can you restrict access to parts of strapi admin?
Using Strapi to build an API. Love most of it, but it seems access to the admin interface is all or nothing; you can't hide the more advanced aspects of admin for users who should only be able to add/edit content...? Am I missing something? How is…

user2654408
- 213
- 2
- 10
12
votes
4 answers
next/image not working with props as image source
My Home page sends data from my strapi cms to my PostSlider component via props
import React from "react";
import styles from './index.module.scss'
import { AxiosService } from '../utils/axios-service'
import PostSlider from…

dev_el
- 2,357
- 5
- 24
- 55
12
votes
4 answers
Is it possible to connect an existing database with Strapi CMS?
I am trying to create an API using Strapi CMS. I have an existing PostgreSQL + postgis database and I would like to connect-use this database in a Strapi project.
Do you know if it is possible to do something like this?

Elena Valari
- 173
- 2
- 2
- 11
12
votes
1 answer
Understanding how strapi relations works
I'm new to strapi and in general with back end development and I'm trying to understand how a very small things should work.
I have a User model, a Profile model and a Fare model.
A User can have a Profile so I created a relation has and belongs to…

Ayeye Brazo
- 3,316
- 7
- 34
- 67
12
votes
4 answers
Can Strapi be launched into AWS lambda?
i want a good cms/backend application to create/manage API on AWS.
strapi fits well for my requirement.
but i dont want to use EC2, lightsail, beanstalk etc
i want to use strapi on aws lambda
is it possible to deploy strapi on aws lambda?

David Jeba
- 131
- 1
- 4
12
votes
11 answers
How do I return only selected certain fields in Strapi?
Pretty straightforward (I hope). I'd like to be able to use the API endpoint and have it only return specified fields. I.E. something like this
http://localhost:1337/api/reference?select=["name"]
Would ideally return something of the form
[{"name":…

Andrew Duensing
- 195
- 1
- 3
- 9
11
votes
1 answer
Strapi : What is the Content and API migration strategy
Strapi is a powerful tool, but I am unable to find any documentation/instructions which explain about the best practices/strategy to migrate contents from one environment to another, for example Dev to staging to production ?
If you got a lot of…

Dev G
- 1,387
- 4
- 26
- 43
11
votes
3 answers
strapi - restrict user to fetch only data related to him
Usually, a logged-in user gets all entries of a Content Type.
I created a "snippets" content type (_id,name,content,users<<->>snippets)
<<->> means "has and belongs to many" relation.
I created some test users and make a request:
curl -H…

sgohl
- 391
- 3
- 17
11
votes
2 answers
Running Strapi in production and version control sync issues
I'm wondering what the best practice is for running Strapi in production. I noticed that Strapi generates new files when a content type is added. This means that the production environment's files will become out of sync with version control. Is…

greatwitenorth
- 2,241
- 2
- 19
- 21
10
votes
5 answers
Image URL not showing on API Call Strapi v4 in single collection type
{
id: 2,
attributes: {
title: ‘Test Title’,
body: ‘Test Body’,
date: null,
createdAt: ‘2021-11-30T20:52:09.206Z’,
updatedAt: ‘2021-11-30T20:57:26.724Z’,
publishedAt: ‘2021-11-30T20:57:26.720Z’
}

Muhammed Sahil
- 101
- 1
- 1
- 5
10
votes
7 answers
Flutter SocketException (SocketException: OS Error: Connection refused, errno = 111, address = localhost, port = 51500)
I am Using strapi.io open Source Node.js Headless CMS
this is my code for registerpage
void _registerUser() async {
http.Response response =
await http.post('http://localhost:1337/auth/local/register', body: {
"username": _userName,
…

Sagar Shende
- 221
- 1
- 2
- 18
10
votes
2 answers
GraphQL to query something other than ID
I am using Strapi with Nuxt.js to implement my first Headless CMS. I am using Apollo and GraphQL.
I am running into the current error and I've had no luck to figure this out for days.
If I write:
query Page($id: ID!) {
page(id: $id) {
id
…

Saro
- 529
- 1
- 7
- 19
10
votes
2 answers
migrate Strapi project from sqlite to postgres
I've got a local strapi set up with sqlite. I didn't think ahead, sadly that I would need use postgres to deploy to Heroku later.
After struggling to deploy with the project using sqlite, I decided to create a new project using postgres and…

Tanpo
- 233
- 3
- 18
9
votes
2 answers
Missing jwtSecret. Please, set configuration variable "jwtSecret" for the users-permissions plugin in config/plugins.js
I am following this tutorial on Strapi's website: https://docs.strapi.io/developer-docs/latest/setup-deployment-guides/deployment/hosting-guides/amazon-aws.html
to deploy to AWS. It doesn't mention a jwtSecret throughout the entire tutorial but I am…

John Smith
- 113
- 1
- 8