Netlify Dev ◈
◈ Injected .env.development file env var: GATSBY_SHOPIFY_STOREFRONT_TOKEN
◈ Empty args assigned, this is an internal Netlify Dev bug
I did netlify dev and got this message. Trying to connect shopify with gatsby so that graphlq will get allshopify etc on the site.
Can’t do it going through gatsby. hope you can help
Config
require(“dotenv”).config({
path: .env.${process.env.NODE_ENV}
,
})
module.exports = {
plugins: [
'gatsby-plugin-sharp',
'gatsby-transformer-sharp',
{
resolve: 'gatsby-source-filesystem',
options: {
name: 'pages',
path: 'src/pages'
}
},
{
resolve: 'gatsby-source-shopify',
options: {
shopName: 'bumples',
accessToken: process.env.GATSBY_SHOPIFY_STOREFRONT_TOKEN,
includeCollections: ["juvenile fiction"],
}
}
]
}
index.js
export default () => (
<h1>Hello</h1>
)
Thanks Jen.