This repository has been archived by the owner on Mar 30, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgatsby-config.js
61 lines (58 loc) · 1.63 KB
/
gatsby-config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
require('dotenv').config();
console.log(`Using dataset [${process.env.DATASET}]`);
const config = {
pathPrefix: `/familie/sykdom-i-familien`,
siteMetadata: {
title: `Sykdom i familien`,
title_nb: `Sykdom i familien`,
title_nn: `Sjukdom i familien`,
},
plugins: [
'gatsby-plugin-nodejs',
'gatsby-plugin-remove-trailing-slashes',
{
resolve: `gatsby-plugin-compile-es6-packages`,
options: {
modules: [`query-string`],
},
},
{
resolve: 'gatsby-source-sanity',
options: {
projectId: '8ux9tyb9',
dataset: `${process.env.DATASET}`,
token: `${process.env.SANITY_TOKEN}`,
watchMode: process.env.WATCH_MODE,
overlayDrafts: process.env.OVERLAY_DRAFTS,
},
},
{
resolve: `nav-decorator`,
},
{
resolve: 'gatsby-plugin-react-svg',
},
`gatsby-plugin-react-helmet`,
`gatsby-plugin-typescript`,
`gatsby-plugin-tslint`,
{
resolve: `gatsby-plugin-less`,
options: {
globalVars: {
coreModulePath: `"~"`,
nodeModulesPath: `"~"`,
},
},
},
{
resolve: `gatsby-plugin-intl`,
options: {
path: `${__dirname}/src/i18n`,
languages: [`nb`, `nn`],
defaultLanguage: `nb`,
redirect: true,
},
},
],
};
module.exports = config;