2021-05-19 18:19:38 -04:00
|
|
|
module.exports = {
|
2021-05-20 21:54:08 -04:00
|
|
|
/*
|
|
|
|
This is to workaround the following error when building locally:
|
|
|
|
Warning: React.createElement: type is invalid -- expected a string
|
|
|
|
(for built-in components) or a class/function (for composite components) but got: undefined.
|
|
|
|
at IndexPage
|
|
|
|
We will need to fix this before running `gatsby build`
|
|
|
|
*/
|
|
|
|
flags: {
|
|
|
|
DEV_SSR: false
|
|
|
|
},
|
2021-05-19 18:19:38 -04:00
|
|
|
siteMetadata: {
|
2021-05-20 21:54:08 -04:00
|
|
|
title: "Justice40",
|
2021-05-19 18:19:38 -04:00
|
|
|
},
|
2021-05-21 13:05:27 -04:00
|
|
|
plugins: [
|
|
|
|
{
|
|
|
|
resolve: 'gatsby-plugin-sass',
|
|
|
|
options: {
|
|
|
|
cssLoaderOptions: {
|
|
|
|
modules: {
|
|
|
|
exportLocalsConvention: 'camelCaseOnly'
|
|
|
|
}
|
2021-05-20 23:59:20 -04:00
|
|
|
}
|
|
|
|
}
|
2021-05-21 13:05:27 -04:00
|
|
|
},
|
|
|
|
{
|
|
|
|
resolve: `gatsby-plugin-intl`,
|
|
|
|
options: {
|
|
|
|
// language JSON resource path
|
|
|
|
path: `${__dirname}/src/intl`,
|
|
|
|
// supported language
|
|
|
|
languages: [`en`, `es`],
|
|
|
|
// language file path
|
|
|
|
defaultLanguage: `en`,
|
|
|
|
// option to redirect to `/en` when connecting `/`
|
|
|
|
redirect: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
2021-05-19 18:19:38 -04:00
|
|
|
};
|