-
Notifications
You must be signed in to change notification settings - Fork 0
/
gatsby-config.js
45 lines (44 loc) · 1008 Bytes
/
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
const path = require("path")
module.exports = {
plugins: [
{
resolve: "gatsby-source-filesystem",
options: {
name: "pages",
path: "src/pages",
},
},
{
resolve: "gatsby-plugin-mdx",
options: {
defaultLayouts: {
pages: require.resolve("./src/layouts/index.tsx"),
},
},
},
{
resolve: "gatsby-plugin-typescript",
options: {
isTSX: true,
allExtensions: true,
},
},
"gatsby-plugin-preload-fonts",
{
resolve: "gatsby-plugin-manifest",
options: {
name: process.env.npm_package_name,
short_name: process.env.npm_package_name,
start_url: "/",
icon: require.resolve("./src/images/favicon.png"),
},
},
"gatsby-plugin-react-helmet",
{
resolve: "gatsby-plugin-env-variables",
options: {
whitelist: ["npm_package_name", "npm_package_version", "npm_package_description"],
},
},
],
}