fix: api url ingurune aldagaietatik hartzen du
This commit is contained in:
@@ -1,3 +1,3 @@
|
|||||||
GATSBY_ROOT_URL=http://localhost:8000
|
GATSBY_ROOT_URL=http://localhost:8000
|
||||||
API_URL=http://localhost:1337/api
|
API_URL=http://localhost:1337
|
||||||
STRAPI_GRAPHQL_TOKEN=307442ef6911b9692d6946bf6aac5d910795b56d92063e8a58ace14e31c8ac6ad7b64480ba591689abbad02758da9562e423e1ef1af8b9f303612ffb63f94f567060ea9f690d9d14bce676bdcf985a2a8c95643963ffd6f593490bb4b4ccae51572cbf315e7c823d0f368de2fe113b113986e9943df1a81e6e4228b82cc7cead
|
STRAPI_GRAPHQL_TOKEN=307442ef6911b9692d6946bf6aac5d910795b56d92063e8a58ace14e31c8ac6ad7b64480ba591689abbad02758da9562e423e1ef1af8b9f303612ffb63f94f567060ea9f690d9d14bce676bdcf985a2a8c95643963ffd6f593490bb4b4ccae51572cbf315e7c823d0f368de2fe113b113986e9943df1a81e6e4228b82cc7cead
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
GATSBY_ROOT_URL=https://laba-webgunea.netlify.app
|
GATSBY_ROOT_URL=https://laba-webgunea.netlify.app
|
||||||
API_URL=https://laba-webgunea.up.railway.app/api
|
API_URL=https://laba-webgunea.up.railway.app
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ module.exports = {
|
|||||||
{
|
{
|
||||||
resolve: 'gatsby-source-strapi-graphql',
|
resolve: 'gatsby-source-strapi-graphql',
|
||||||
options: {
|
options: {
|
||||||
apiURL: 'http://localhost:1337',
|
apiURL: process.env.API_URL,
|
||||||
collectionTypes: [],
|
collectionTypes: [],
|
||||||
singleTypes: [
|
singleTypes: [
|
||||||
'hasiera',
|
'hasiera',
|
||||||
|
|||||||
Reference in New Issue
Block a user