diff --git a/front/.env.development b/front/.env.development index 05c480a..6e5dc51 100644 --- a/front/.env.development +++ b/front/.env.development @@ -1,3 +1,3 @@ GATSBY_ROOT_URL=http://localhost:8000 -API_URL=http://localhost:1337/api +API_URL=http://localhost:1337 STRAPI_GRAPHQL_TOKEN=307442ef6911b9692d6946bf6aac5d910795b56d92063e8a58ace14e31c8ac6ad7b64480ba591689abbad02758da9562e423e1ef1af8b9f303612ffb63f94f567060ea9f690d9d14bce676bdcf985a2a8c95643963ffd6f593490bb4b4ccae51572cbf315e7c823d0f368de2fe113b113986e9943df1a81e6e4228b82cc7cead diff --git a/front/.env.production b/front/.env.production index 4257f20..f5b2335 100644 --- a/front/.env.production +++ b/front/.env.production @@ -1,2 +1,2 @@ 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 diff --git a/front/gatsby-config.js b/front/gatsby-config.js index f87b07d..bec2830 100644 --- a/front/gatsby-config.js +++ b/front/gatsby-config.js @@ -15,7 +15,7 @@ module.exports = { { resolve: 'gatsby-source-strapi-graphql', options: { - apiURL: 'http://localhost:1337', + apiURL: process.env.API_URL, collectionTypes: [], singleTypes: [ 'hasiera',