-
Notifications
You must be signed in to change notification settings - Fork 0
/
gatsby-config.js
57 lines (54 loc) · 1.25 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
const DEFAULT_OPTIONS = require("@gatsbywpthemes/gatsby-theme-blog-data/utils/defaultOptions")
const fs = require("fs")
require("dotenv").config({
path:
(fs.existsSync(`.env.${process.env.NODE_ENV}`) &&
`.env.${process.env.NODE_ENV}`) ||
".env",
})
const {
title,
author,
description,
pathPrefix,
...options
} = require("./config")
const siteUrl = process.env.GATSBY_SITE_URL || options.siteUrl
options.wordPressUrl = process.env.GATSBY_WP_URL
module.exports = {
pathPrefix,
siteMetadata: {
title,
description,
author,
wordPressUrl: process.env.GATSBY_WP_URL,
siteUrl,
},
plugins: [
`gatsby-plugin-react-helmet`,
`@gatsbywpthemes/gatsby-theme-wp-comments`,
`@gatsbywpthemes/gatsby-theme-wp-search`,
`@gatsbywpthemes/gatsby-plugin-gwpt-tailwind`,
{
resolve: `@gatsbywpthemes/gatsby-plugin-gwpt-packages`,
options: {
...DEFAULT_OPTIONS,
...options,
},
},
{
resolve: `@gatsbywpthemes/gatsby-theme-blog-data`,
options: {
...options,
wordPressUrl: process.env.GATSBY_WP_URL,
},
},
{
resolve: "gatsby-plugin-react-leaflet",
options: {
linkStyles: true,
},
},
"gatsby-plugin-sharp-exif",
],
}