forked from medusajs/medusa-contentful-storefront
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgatsby-config.js
37 lines (35 loc) · 962 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
require("dotenv").config()
const CONTENTFUL_SPACE_ID = process.env.CONTENTFUL_SPACE_ID || ""
const CONTENTFUL_ACCESS_TOKEN = process.env.CONTENTFUL_ACCESS_TOKEN || ""
module.exports = {
siteMetadata: {
title: "Store",
titleTemplate: "%s | Medusa Contentful Store",
description:
"Getting you up an running with a powerful headless ecommerce site in no time",
url: "https://www.medusa-commerce.com",
image: "/images/banner.jpg",
twitterUsername: "@medusajs",
},
plugins: [
"gatsby-plugin-image",
"gatsby-plugin-react-helmet",
"gatsby-plugin-sharp",
"gatsby-transformer-sharp",
{
resolve: "gatsby-source-filesystem",
options: {
name: "images",
path: "./src/images/",
},
__key: "images",
},
{
resolve: `gatsby-source-contentful`,
options: {
spaceId: CONTENTFUL_SPACE_ID,
accessToken: CONTENTFUL_ACCESS_TOKEN,
},
},
],
}