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:
Aitor Urrutia
2023-06-26 19:28:03 +02:00
committed by GitHub
parent ea68d390bc
commit 41b8661a10
12 changed files with 3466 additions and 3246 deletions

View File

@@ -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
View 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
},
],
},
},
};

View File

@@ -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"