forked from geeksblabla/geeksblabla.community
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgatsby-config.js
122 lines (121 loc) · 3.06 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
117
118
119
120
121
122
const config = require("./config/website")
const pathPrefix = config.pathPrefix === "/" ? "" : config.pathPrefix
module.exports = {
siteMetadata: {
siteUrl: config.siteUrl + pathPrefix,
title: config.siteTitle,
twitterHandle: config.twitterHandle,
description: config.siteDescription,
keywords: ["DevC_Casa", "Geeksblabla", "Podcast"],
canonicalUrl: config.siteUrl,
image: config.siteLogo,
banner: config.banner,
author: {
name: config.author,
minibio: `DevC Casablanca`,
},
organization: {
name: config.organization,
url: config.siteUrl,
logo: config.siteLogo,
},
social: {
twitter: config.twitterHandle,
fbAppID: "",
},
},
plugins: [
`gatsby-plugin-react-helmet`,
`gatsby-transformer-yaml`,
`gatsby-plugin-preload-fonts`,
{
resolve: "gatsby-source-filesystem",
options: {
path: `${__dirname}/blablas`,
name: "blablas",
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `images`,
path: `${__dirname}/src/images`,
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
path: `${__dirname}/reviews`,
name: "reviews",
},
},
{
resolve: `gatsby-plugin-mdx`,
options: {
extensions: [".mdx", ".md", ".markdown"],
gatsbyRemarkPlugins: [
{
resolve: "gatsby-remark-images",
options: {
backgroundColor: "#fafafa",
maxWidth: 1035,
sizeByPixelDensity: true,
},
},
],
},
},
`gatsby-transformer-sharp`,
`gatsby-plugin-sharp`,
`gatsby-plugin-sass`,
{
resolve: `gatsby-plugin-manifest`,
options: {
name: `GeeksBlabla Website`,
short_name: `GeeksBlabla`,
start_url: `/`,
background_color: `#663399`,
theme_color: `#663399`,
display: `minimal-ui`,
icons: [
{
src: "/android-chrome-192x192.png",
sizes: "192x192",
type: "image/png",
},
{
src: "/android-chrome-512x512.png",
sizes: "512x512",
type: "image/png",
},
],
},
},
{
resolve: `gatsby-plugin-google-analytics`,
options: {
trackingId: "UA-127901499-3",
},
},
{
resolve: "gatsby-plugin-sentry",
options: {
dsn: "https://7048bf611200421abd4d4f0e4d873c8b@sentry.io/1452547",
// Optional settings, see https://docs.sentry.io/clients/node/config/#optional-settings
environment: process.env.NODE_ENV,
enabled: (() => ["production"].indexOf(process.env.NODE_ENV) !== -1)(),
},
},
{
resolve: "gatsby-plugin-react-svg",
options: {
rule: {
exclude: /\.back\.svg$/,
},
},
},
// this (optional) plugin enables Progressive Web App + Offline functionality
// To learn more, visit: https://gatsby.dev/offline
`gatsby-plugin-offline`,
],
}