require('dotenv').config() const siteContent = require('./content/site.json') const appConfig = require('./app.config') module.exports = { siteMetadata: { ...siteContent.site, appConfig: { ...appConfig } }, plugins: [ { resolve: 'gatsby-source-filesystem', options: { name: 'content', path: `${__dirname}/content` } }, { resolve: 'gatsby-source-filesystem', options: { name: 'images', path: `${__dirname}/src/images` } }, { resolve: 'gatsby-source-filesystem', options: { name: 'art', path: `${__dirname}/node_modules/@oceanprotocol/art/` } }, { resolve: 'gatsby-plugin-sharp', options: { defaultQuality: 80 } }, 'gatsby-transformer-sharp', 'gatsby-transformer-json', 'gatsby-transformer-remark', { resolve: 'gatsby-plugin-svgr', options: { icon: false, svgoConfig: { plugins: [{ removeViewBox: false }] } } }, 'gatsby-plugin-react-helmet', 'gatsby-plugin-remove-trailing-slashes', { // https://www.gatsbyjs.org/packages/gatsby-plugin-manifest/#using-with-gatsby-plugin-offline resolve: 'gatsby-plugin-manifest', options: { name: siteContent.site.siteTitle, short_name: siteContent.site.siteTitle, start_url: '/', background_color: '#ffffff', theme_color: '#141414', icon: siteContent.site.siteIcon, display: 'standalone', cache_busting_mode: 'none' } }, 'gatsby-plugin-webpack-size', { resolve: 'gatsby-plugin-google-analytics', options: { // The property ID; the tracking code won't be generated without it trackingId: 'UA-60614729-11', // Defines where to place the tracking script - `true` in the head and `false` in the body head: false, // Setting this parameter is optional anonymize: true, // Setting this parameter is also optional respectDNT: true, // Defers execution of google analytics script after page load defer: true, cookieDomain: 'oceanprotocol.com' } }, { resolve: 'gatsby-plugin-use-dark-mode', options: { ...appConfig.darkModeConfig, minify: true } } ] }