From cf4b202dbf43e10330f0d00c58d3a3ac1cb298df Mon Sep 17 00:00:00 2001 From: Aitor Urrutia Date: Sat, 15 Jan 2022 22:05:17 +0100 Subject: [PATCH] produkziorako konfigurazioa sortzen du --- front/.env.production | 2 ++ front/gatsby-config.js | 28 ++++++++++++++-------------- 2 files changed, 16 insertions(+), 14 deletions(-) create mode 100644 front/.env.production diff --git a/front/.env.production b/front/.env.production new file mode 100644 index 0000000..83448c0 --- /dev/null +++ b/front/.env.production @@ -0,0 +1,2 @@ +GATSBY_ROOT_URL=https://laba-webgunea.netlify.app +API_URL=https://laba-webgunea.herokuapp.com/api diff --git a/front/gatsby-config.js b/front/gatsby-config.js index f5d4a35..6266782 100644 --- a/front/gatsby-config.js +++ b/front/gatsby-config.js @@ -1,5 +1,5 @@ require('dotenv').config({ - path: `.env`, + path: `.env.${process.env.NODE_ENV}`, }); module.exports = { @@ -22,18 +22,18 @@ module.exports = { }, 'gatsby-transformer-sharp', 'gatsby-plugin-sharp', - { - resolve: `gatsby-plugin-manifest`, - options: { - name: 'gatsby-starter-default', - short_name: 'starter', - start_url: '/', - background_color: `#663399`, - theme_color: `#663399`, - display: `minimal-ui`, - icon: `src/images/favicon.png`, - }, - }, - 'gatsby-plugin-sitemap', + // { + // resolve: `gatsby-plugin-manifest`, + // options: { + // name: 'gatsby-starter-default', + // short_name: 'starter', + // start_url: '/', + // background_color: `#663399`, + // theme_color: `#663399`, + // display: `minimal-ui`, + // icon: `src/images/favicon.png`, + // }, + // }, + // 'gatsby-plugin-sitemap', ], };