forked from gatsbyjs/gatsby-starter-contentful-homepage-ts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gatsby-config.js
41 lines (40 loc) · 1.13 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
// 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://gatsbycontentfulhomepage.gatsbyjs.io/",
title: "Gatsby Contentful Homepage Starter",
author: `Gatsby`,
description: "A Gatsby Starter for building homepages with Contentful",
},
plugins: [
{
resolve: "gatsby-source-contentful",
options: {
downloadLocal: true,
spaceId: process.env.CONTENTFUL_SPACE_ID,
accessToken: process.env.CONTENTFUL_ACCESS_TOKEN,
host: process.env.CONTENTFUL_HOST,
},
},
"gatsby-plugin-sharp",
"gatsby-plugin-image",
"gatsby-transformer-sharp",
"gatsby-plugin-vanilla-extract",
{
resolve: "gatsby-plugin-manifest",
options: {
name: "Gatsby Starter Contentful Homepage",
short_name: "Gatsby",
start_url: "/",
// These can be imported once ESM support lands
background_color: "#ffe491",
theme_color: "#004ca3",
icon: "src/favicon.png",
},
},
],
}