Skip to content

Commit

Permalink
139 reinstall strapi to fix admin invites (#151)
Browse files Browse the repository at this point in the history
* reinstall strapi

* install plugin apollo sandbox

* rebuild and run develop after plugin install

* install and configure graphql plugin

* fix jsconfig error

* add apollo playground security config

* recreate content types

* recreate most recent image

* Revert "install plugin apollo sandbox"

This reverts commit bf8c651833f6ff11bc33122a4aa4ba02bdf43119.

* Revert "add apollo playground security config"

This reverts commit 5ee1ffd17014729c3e8202fc9f16bdf835d3e9ce.

* delete node modules and lock files, rerun npm install

* re add readme edits
  • Loading branch information
Magnus Alexander Strømseng authored and GitHub committed Mar 18, 2024
1 parent 678b86c commit 250b6d9
Show file tree
Hide file tree
Showing 37 changed files with 1,206 additions and 6,226 deletions.
5 changes: 0 additions & 5 deletions backend/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,3 @@ exports
dist
build
.strapi-updater.json

############################
# Documentation
############################
src/extensions/documentation/documentation/1.0.0/full_documentation.json
2 changes: 1 addition & 1 deletion backend/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,4 @@ Feel free to check out the [Strapi GitHub repository](https://github.com/strapi/

---

`<sub>`🤫 Psst! [Strapi is hiring](https://strapi.io/careers).`</sub>`
<sub>🤫 Psst! [Strapi is hiring](https://strapi.io/careers).</sub>
11 changes: 0 additions & 11 deletions backend/config/env/production/database.js

This file was deleted.

7 changes: 0 additions & 7 deletions backend/config/env/production/server.js

This file was deleted.

33 changes: 10 additions & 23 deletions backend/config/middlewares.js
Original file line number Diff line number Diff line change
@@ -1,25 +1,12 @@
module.exports = [
"strapi::logger",
"strapi::errors",
{
name: "strapi::security",
config: {
contentSecurityPolicy: {
directives: {
"frame-src": [
"http://localhost:*",
"self",
"sandbox.embed.apollographql.com",
],
},
},
},
},
"strapi::cors",
"strapi::poweredBy",
"strapi::query",
"strapi::body",
"strapi::session",
"strapi::favicon",
"strapi::public",
'strapi::logger',
'strapi::errors',
'strapi::security',
'strapi::cors',
'strapi::poweredBy',
'strapi::query',
'strapi::body',
'strapi::session',
'strapi::favicon',
'strapi::public',
];
15 changes: 3 additions & 12 deletions backend/config/plugins.js
Original file line number Diff line number Diff line change
@@ -1,23 +1,14 @@
module.exports = {
//
module.exports = () => ({
graphql: {
config: {
endpoint: "/graphql",
shadowCRUD: true,
playgroundAlways: true,
playgroundAlways: false,
depthLimit: 20,
amountLimit: 100,
apolloServer: {
tracing: false,
introspection: true,
},
},
},
"apollo-sandbox": {
// enables the plugin only in development mode
// if you also want to use it in production, set this to true
// keep in mind that graphql playground has to be enabled
enabled: true
// endpoint: "https://tunneled-strapi.com/graphql", // OPTIONAL - endpoint has to be accessible from the browser
},
};
});
Loading

0 comments on commit 250b6d9

Please sign in to comment.