-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgatsby-config.js
116 lines (113 loc) · 3.22 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
/* eslint-disable no-console */
const activeEnv = process.env.GATSBY_ACTIVE_ENV || process.env.NODE_ENV || "development"
console.log(`Rebuilding using environment config: '${activeEnv}'`)
require("dotenv").config({
path: `.env.${process.env.NODE_ENV}`,
})
module.exports = {
siteMetadata: {
title: "Dataprata",
description: `Information about how to communicate with family and friends over the Internet, started as a reaction on people being
isolated during the COVID-19 crisis.`,
keywords: "daresay, daresaydigital, gibon, dataprata, ringmera, gatsby, covid19, vitecherupp",
siteUrl: "https://dataprata.se",
author: {
name: "Daresay",
url: "https://daresay.co",
email: "[email protected]",
twitter: "daresaydigital",
},
seo: {
title: "Lär dig kommunicera över internet med vänner och anhöriga",
description: "Information om hur du kan hålla kontakt med dina nära och kära under COVID-19 krisen.",
},
},
plugins: [
{
resolve: "gatsby-source-filesystem",
options: {
name: "content",
path: `${__dirname}/src/content`,
},
},
{
resolve: "gatsby-transformer-remark",
options: {
plugins: [
{
resolve: "gatsby-remark-responsive-iframe",
options: {
wrapperStyle: "margin-bottom: 1rem",
},
},
"gatsby-remark-prismjs",
"gatsby-remark-copy-linked-files",
"gatsby-remark-smartypants",
{
resolve: "gatsby-remark-images",
options: {
maxWidth: 1140,
quality: 90,
linkImagesToOriginal: false,
},
},
],
},
},
{
resolve: `gatsby-plugin-intl`,
options: {
// language JSON resource path
path: `${__dirname}/src/intl`,
// supported language
languages: [`sv`, `en`],
// language file path
defaultLanguage: `sv`,
// option to redirect to `/sv` when connecting `/`
redirect: false,
},
},
"gatsby-transformer-json",
{
resolve: "gatsby-plugin-canonical-urls",
options: {
siteUrl: "https://dataprata.se",
},
},
"gatsby-plugin-emotion",
"gatsby-plugin-typescript",
"gatsby-plugin-sharp",
"gatsby-transformer-sharp",
"gatsby-plugin-react-helmet",
"gatsby-plugin-mdx",
{
resolve: `gatsby-plugin-favicon`,
options: {
logo: "./src/favicon.png",
// WebApp Manifest Configuration
appName: "Dataprata",
appDescription: "Information om hur du kan hålla kontakt med dina nära och kära under COVID-19 krisen.",
developerName: "Daresay",
developerURL: "https://daresay.co",
dir: "auto",
lang: "sv-SE",
background: "#333",
theme_color: "#FFF543",
display: "standalone",
orientation: "any",
start_url: "/",
version: "1.0",
icons: {
android: true,
appleIcon: true,
appleStartup: true,
coast: false,
favicons: true,
firefox: true,
yandex: false,
windows: true,
},
},
},
],
}