gatsby-config.js 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. module.exports = {
  2. siteMetadata: {
  3. siteUrl: 'https://joystream.org',
  4. },
  5. plugins: [
  6. 'gatsby-plugin-polyfill-io',
  7. 'gatsby-plugin-react-helmet',
  8. 'gatsby-plugin-stylelint',
  9. {
  10. resolve: 'gatsby-source-filesystem',
  11. options: {
  12. name: 'images',
  13. path: `${__dirname}/src/assets`,
  14. },
  15. },
  16. {
  17. resolve: 'gatsby-plugin-svgr',
  18. options: {
  19. exclude: /(hydra-hero.svg)$/,
  20. },
  21. },
  22. 'gatsby-plugin-anchor-links',
  23. 'gatsby-transformer-sharp',
  24. 'gatsby-plugin-sharp',
  25. {
  26. resolve: 'gatsby-plugin-manifest',
  27. options: {
  28. name: 'gatsby-starter-default',
  29. short_name: 'starter',
  30. start_url: '/',
  31. background_color: '#000000',
  32. theme_color: '#000000',
  33. display: 'minimal-ui',
  34. icon: 'src/assets/images/favicon.png',
  35. },
  36. },
  37. {
  38. resolve: 'gatsby-plugin-google-analytics',
  39. options: {
  40. trackingId: process.env.GA_ID,
  41. },
  42. },
  43. {
  44. resolve: 'gatsby-plugin-hotjar',
  45. options: {
  46. id: process.env.HJ_ID,
  47. sv: process.env.HJ_SV,
  48. },
  49. },
  50. 'gatsby-plugin-sass',
  51. {
  52. resolve: `gatsby-source-filesystem`,
  53. options: {
  54. path: `${__dirname}/src/locales`,
  55. name: `locale`
  56. }
  57. },
  58. {
  59. resolve: `gatsby-plugin-react-i18next`,
  60. options: {
  61. localeJsonSourceName: `locale`, // name given to `gatsby-source-filesystem` plugin.
  62. languages: [`en`, `ru`],
  63. defaultLanguage: `en`,
  64. siteUrl: `https://www.joystream.org/`,
  65. i18nextOptions: {
  66. interpolation: {
  67. escapeValue: false // not needed for react as it escapes by default
  68. },
  69. nsSeparator: false
  70. },
  71. pages: [
  72. {
  73. matchPath: '/',
  74. languages: ['en','ru']
  75. }
  76. ]
  77. }
  78. },
  79. // this (optional) plugin enables Progressive Web App + Offline functionality
  80. // To learn more, visit: https://gatsby.dev/offline
  81. // `gatsby-plugin-offline`,
  82. ],
  83. };