1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283 |
- module.exports = {
- siteMetadata: {
- siteUrl: 'https://joystream.org',
- },
- plugins: [
- 'gatsby-plugin-polyfill-io',
- 'gatsby-plugin-react-helmet',
- 'gatsby-plugin-stylelint',
- {
- resolve: 'gatsby-source-filesystem',
- options: {
- name: 'images',
- path: `${__dirname}/src/assets`,
- },
- },
- {
- resolve: 'gatsby-plugin-svgr',
- options: {
- exclude: /(hydra-hero.svg)$/,
- },
- },
- 'gatsby-plugin-anchor-links',
- 'gatsby-transformer-sharp',
- 'gatsby-plugin-sharp',
- {
- resolve: 'gatsby-plugin-manifest',
- options: {
- name: 'gatsby-starter-default',
- short_name: 'starter',
- start_url: '/',
- background_color: '#000000',
- theme_color: '#000000',
- display: 'minimal-ui',
- icon: 'src/assets/images/favicon.png',
- },
- },
- {
- resolve: 'gatsby-plugin-google-analytics',
- options: {
- trackingId: process.env.GA_ID,
- },
- },
- {
- resolve: 'gatsby-plugin-hotjar',
- options: {
- id: process.env.HJ_ID,
- sv: process.env.HJ_SV,
- },
- },
- 'gatsby-plugin-sass',
- {
- resolve: `gatsby-source-filesystem`,
- options: {
- path: `${__dirname}/src/locales`,
- name: `locale`
- }
- },
- {
- resolve: `gatsby-plugin-react-i18next`,
- options: {
- localeJsonSourceName: `locale`, // name given to `gatsby-source-filesystem` plugin.
- languages: [`en`, `ru`, 'zh', 'es', 'fr'],
- defaultLanguage: `en`,
- siteUrl: `https://www.joystream.org/`,
- i18nextOptions: {
- interpolation: {
- escapeValue: false // not needed for react as it escapes by default
- },
- nsSeparator: false
- },
- pages: [
- {
- matchPath: '/',
- languages: ['en','ru', 'zh', 'es', 'fr']
- }
- ]
- }
- },
- // this (optional) plugin enables Progressive Web App + Offline functionality
- // To learn more, visit: https://gatsby.dev/offline
- // `gatsby-plugin-offline`,
- ],
- };
|