2020-06-30 11:28:49 +02:00
|
|
|
require('dotenv').config()
|
|
|
|
|
2020-07-08 15:15:02 +02:00
|
|
|
const siteContent = require('./content/site.json')
|
2020-08-11 08:44:31 +02:00
|
|
|
const appConfig = require('./app.config')
|
2020-06-30 11:28:49 +02:00
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
siteMetadata: {
|
2020-07-15 15:09:50 +02:00
|
|
|
...siteContent.site,
|
|
|
|
appConfig: {
|
|
|
|
...appConfig
|
|
|
|
}
|
2020-06-30 11:28:49 +02:00
|
|
|
},
|
|
|
|
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/`
|
|
|
|
}
|
|
|
|
},
|
2020-06-30 13:32:16 +02:00
|
|
|
{
|
|
|
|
resolve: 'gatsby-plugin-sharp',
|
|
|
|
options: {
|
|
|
|
defaultQuality: 80
|
|
|
|
}
|
|
|
|
},
|
|
|
|
'gatsby-transformer-sharp',
|
2020-06-30 11:28:49 +02:00
|
|
|
'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',
|
2020-06-30 13:32:16 +02:00
|
|
|
{
|
|
|
|
// https://www.gatsbyjs.org/packages/gatsby-plugin-manifest/#using-with-gatsby-plugin-offline
|
|
|
|
resolve: 'gatsby-plugin-manifest',
|
|
|
|
options: {
|
2020-07-08 15:15:02 +02:00
|
|
|
name: siteContent.site.siteTitle,
|
|
|
|
short_name: siteContent.site.siteTitle,
|
2020-06-30 13:32:16 +02:00
|
|
|
start_url: '/',
|
|
|
|
background_color: '#ffffff',
|
|
|
|
theme_color: '#141414',
|
2020-07-08 15:15:02 +02:00
|
|
|
icon: siteContent.site.siteIcon,
|
2020-06-30 13:32:16 +02:00
|
|
|
display: 'standalone',
|
|
|
|
cache_busting_mode: 'none'
|
|
|
|
}
|
|
|
|
},
|
2020-10-27 10:24:24 +01:00
|
|
|
'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'
|
|
|
|
}
|
2020-10-30 21:28:20 +01:00
|
|
|
},
|
|
|
|
{
|
|
|
|
resolve: 'gatsby-plugin-use-dark-mode',
|
|
|
|
options: {
|
|
|
|
...appConfig.darkModeConfig,
|
|
|
|
minify: true
|
|
|
|
}
|
2020-10-27 10:24:24 +01:00
|
|
|
}
|
2020-06-30 11:28:49 +02:00
|
|
|
]
|
|
|
|
}
|