57 lines
1.2 KiB
JavaScript
57 lines
1.2 KiB
JavaScript
require('dotenv').config({
|
|
path: `.env.${process.env.NODE_ENV}`,
|
|
});
|
|
|
|
module.exports = {
|
|
plugins: [
|
|
'gatsby-plugin-react-helmet',
|
|
{
|
|
resolve: `gatsby-source-filesystem`,
|
|
options: {
|
|
name: `images`,
|
|
path: `${__dirname}/src/images`,
|
|
},
|
|
},
|
|
{
|
|
resolve: 'gatsby-source-strapi',
|
|
options: {
|
|
apiURL: process.env.API_URL || 'http://localhost:1337/api',
|
|
singleTypes: ['hasiera'],
|
|
queryLimit: 1000,
|
|
},
|
|
},
|
|
'gatsby-transformer-sharp',
|
|
'gatsby-plugin-sharp',
|
|
'gatsby-plugin-styled-components',
|
|
{
|
|
resolve: `gatsby-plugin-manifest`,
|
|
options: {
|
|
name: 'Laba webgunea',
|
|
short_name: 'Laba',
|
|
start_url: '/',
|
|
background_color: `#fd3447`,
|
|
theme_color: `#fd3447`,
|
|
display: `standalone`,
|
|
icon: `src/images/logo.png`,
|
|
},
|
|
},
|
|
'gatsby-plugin-offline',
|
|
// 'gatsby-plugin-sitemap',
|
|
{
|
|
resolve: 'gatsby-plugin-react-svg',
|
|
options: {
|
|
rule: {
|
|
include: /assets/,
|
|
},
|
|
},
|
|
},
|
|
{
|
|
resolve: `gatsby-plugin-google-fonts`,
|
|
options: {
|
|
fonts: [`work sans\:600`],
|
|
display: 'swap',
|
|
},
|
|
},
|
|
],
|
|
};
|