chore: apiurl konpontzen du build-a ongi egiteko
This commit is contained in:
@@ -34,6 +34,8 @@ const query = qs.stringify(
|
|||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
|
||||||
|
const apiUrl = process.env.API_URL || 'http://localhost:1337/api';
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
plugins: [
|
plugins: [
|
||||||
'gatsby-plugin-react-helmet',
|
'gatsby-plugin-react-helmet',
|
||||||
@@ -48,13 +50,13 @@ module.exports = {
|
|||||||
resolve: 'gatsby-source-custom-api',
|
resolve: 'gatsby-source-custom-api',
|
||||||
options: {
|
options: {
|
||||||
rootKey: 'kafetegia',
|
rootKey: 'kafetegia',
|
||||||
url: `http://localhost:1337/api/kafetegia?${query}`,
|
url: `${apiUrl}/kafetegia?${query}`,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
resolve: 'gatsby-source-strapi',
|
resolve: 'gatsby-source-strapi',
|
||||||
options: {
|
options: {
|
||||||
apiURL: process.env.API_URL || 'http://localhost:1337/api',
|
apiURL: apiUrl,
|
||||||
singleTypes: [
|
singleTypes: [
|
||||||
'hasiera',
|
'hasiera',
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user