-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgatsby-config.js
40 lines (39 loc) · 1.07 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
// 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://gatsbydatocmshomepage.gatsbyjs.io/",
title: "Gatsby DatoCMS Homepage Starter",
author: `Gatsby`,
description: "A Gatsby Starter for building homepages with DatoCMS",
},
plugins: [
{
resolve: "gatsby-source-datocms",
options: {
apiToken: process.env.DATOCMS_API_TOKEN,
environment: process.env.DATOCMS_ENVIRONMENT,
},
},
"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 DatoCMS Homepage",
short_name: "Gatsby",
start_url: "/",
// These can be imported once ESM support lands
background_color: "#ffffff",
theme_color: "#db3000",
icon: "src/favicon.png",
},
},
],
}