-
Notifications
You must be signed in to change notification settings - Fork 0
/
gatsby-config.js
45 lines (44 loc) · 1.17 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
// support for .env, .env.development, and .env.production
require("dotenv").config()
require("dotenv").config({
path: `.env.${process.env.NODE_ENV}`,
})
module.exports = {
siteMetadata: {
siteUrl: "https://gatsbywordpresshomepage.gatsbyjs.io/",
title: "Gatsby WordPress Homepage Starter",
author: `Gatsby`,
description: "A Gatsby Starter for building homepages with WordPress",
},
plugins: [
{
resolve: "gatsby-source-wordpress",
options: {
url: process.env.WPGRAPHQL_URL,
auth: {
htaccess: {
username: process.env.HTUSER,
password: process.env.HTPASSWORD
}
}
},
},
"gatsby-plugin-sharp",
"gatsby-plugin-image",
"gatsby-transformer-sharp",
"gatsby-plugin-react-helmet",
"gatsby-plugin-vanilla-extract",
{
resolve: "gatsby-plugin-manifest",
options: {
name: "Gatsby Starter WordPress Homepage",
short_name: "Gatsby",
start_url: "/",
// These can be imported once ESM support lands
background_color: "#ffffff",
theme_color: "#004ca3",
icon: "src/favicon.png",
},
},
],
}