Graphql erabiltzen du (#5)
* feat: graphql erabiltzen du * node bertsioa jeisten du * feat: netlify deployments sartzen du * feat: token-a sortzen du * chore: Gatsbyren aldagaiak berreskuratzen ditu * fix: query-a konpontzen du
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
HOST=0.0.0.0
|
||||
PORT=1337
|
||||
DATABASE_FILENAME=database/migrations/development.db
|
||||
NETLIFY_DEPLOYMENTS_PLUGIN_ACCESS_TOKEN="<netlify access token>"
|
||||
|
||||
29
back/config/plugins.js
Normal file
29
back/config/plugins.js
Normal file
@@ -0,0 +1,29 @@
|
||||
module.exports = {
|
||||
graphql: {
|
||||
config: {
|
||||
endpoint: "/graphql",
|
||||
shadowCRUD: true,
|
||||
playgroundAlways: false,
|
||||
depthLimit: 7,
|
||||
amountLimit: 100,
|
||||
apolloServer: {
|
||||
introspection: true,
|
||||
},
|
||||
},
|
||||
},
|
||||
"netlify-deployments": {
|
||||
enabled: true,
|
||||
config: {
|
||||
accessToken: process.env.NETLIFY_DEPLOYMENTS_PLUGIN_ACCESS_TOKEN,
|
||||
sites: [
|
||||
{
|
||||
name: "laba-webgunea",
|
||||
id: "3e9ed70d-2f4b-4152-9aaf-1129570d01b4",
|
||||
buildHook:
|
||||
"https://api.netlify.com/build_hooks/61e338c09f4ef3bf644f86db",
|
||||
branch: "main", // optional
|
||||
},
|
||||
],
|
||||
},
|
||||
},
|
||||
};
|
||||
Binary file not shown.
@@ -9,14 +9,15 @@
|
||||
"build": "strapi build",
|
||||
"strapi": "strapi"
|
||||
},
|
||||
"devDependencies": {},
|
||||
"dependencies": {
|
||||
"@strapi/plugin-graphql": "^4.11.2",
|
||||
"@strapi/plugin-i18n": "4.11.2",
|
||||
"@strapi/plugin-users-permissions": "4.11.2",
|
||||
"@strapi/strapi": "4.11.2",
|
||||
"pg": "^8.11.0",
|
||||
"pg-connection-string": "^2.6.0",
|
||||
"sqlite3": "5.1.6"
|
||||
"sqlite3": "5.1.6",
|
||||
"strapi-plugin-netlify-deployments": "^2.0.0"
|
||||
},
|
||||
"author": {
|
||||
"name": "Laba Sarea"
|
||||
|
||||
Reference in New Issue
Block a user